| 09-12-2003, 03:56 AM | #1 |
k i'm trying to improve a scrolling camra system for underground gameplay i have its controls like the movement system, but i can't seem to get it to work. Here are my triggers. plz tell me why whenever i hit right it either goes forever or i gotta tap it to make it scroll around. Thanks :-D RotateRight Events Player - Player 1 (Red) Presses the Right Arrow key Conditions Actions Set Rotation_Keys_Pressed[1] = True For each (Integer loop[1]) from 1 to 2, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Rotation_Keys_Pressed[1] Equal to True Then - Actions Set CamraRotation[1] = (CamraRotation[1] + 5.00) Camera - Set Player 1 (Red)'s camera Rotation to (CamraRotation[1] + 5.00) over 2.00 seconds Set loop[1] = -1 Else - Actions ____________________________________________________ StopRotateRight Events Player - Player 1 (Red) Releases the Right Arrow key Conditions Actions Set Rotation_Keys_Pressed[1] = False emote_sweat |
| 09-12-2003, 04:20 AM | #2 |
What are you trying to do? |
| 09-12-2003, 05:07 AM | #3 |
http://www.wc3campaigns.com/forums/s...threadid=27801 Check out the above link for rotating camera trigs that work. :D |
| 09-12-2003, 05:28 AM | #4 |
i'm basing it off that movement system u just showed.. I'm only changing moving a unit to rotating a camra around a unit. |
| 09-12-2003, 10:19 AM | #5 |
well, instead of doing like you've tried to it, try this; make a trigger like this; // name: bla event - every 1 second action - set player1 camera rotation to (player1 current camera rotation + 5) // and make this trigger to be initially off and; // event - player1 presses the right arrow key action - enable bla // and; // event - player1 releases the right arrow key action - disable bla // I've put the trigger names into words, since I don't remember them exactly and it might be stuff that's wrong, but i hope you get the idea. |
