B
Betray
Guest
Alright I got a question for ya..
I am trying to make a vehicle with acceleration.
This is what I have done, but it seems something is missing.
Trigger1- Player 1 Presses Up Arrow Key
Turn On Trigger2 and Trigger3
Trigger2- Periodic Event - Every .10 Seconds
Order (Unit) Move (Position of Unit offset by 512)
towards (Direction)
Direction is a Real Array Variable that changes as you press left and right arrow keys.
Trigger3- Periodic Event 0 Every .25 Seconds
Set (Speed) = Speed + 25
Set Movement Speed of (Unit) = (Speed)
Speed is a Real Array Variable.
Trigger4- Player 1 Releases Up Arrow Key
Turn off Trigger3
Logically I don't see how this doesn't work but I must be missing something because it does not pick up speed.. any suggestions?
I am trying to make a vehicle with acceleration.
This is what I have done, but it seems something is missing.
Trigger1- Player 1 Presses Up Arrow Key
Turn On Trigger2 and Trigger3
Trigger2- Periodic Event - Every .10 Seconds
Order (Unit) Move (Position of Unit offset by 512)
towards (Direction)
Direction is a Real Array Variable that changes as you press left and right arrow keys.
Trigger3- Periodic Event 0 Every .25 Seconds
Set (Speed) = Speed + 25
Set Movement Speed of (Unit) = (Speed)
Speed is a Real Array Variable.
Trigger4- Player 1 Releases Up Arrow Key
Turn off Trigger3
Logically I don't see how this doesn't work but I must be missing something because it does not pick up speed.. any suggestions?


