Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Player - Player 1 (Red) Presses the Left Arrow key
Actions
Set i = (i + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
i Equal to 2
Then - Actions
Set i = 0
<actions>
Else - Actions
Time check is possible too buts it's harder. I think you can null variable after some time. And, in multiplayer you'll need local variables. (local integer i)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
UpArrowPressed Equal to True
Then - Actions
Set UpArrowPressed = False
Skip remaining actions
Else - Actions
Set UpArrowPressed = True
The variable UpArrowPressed is a Boolean, and what it does is it will set the variable to true when the arrow key is pressed, and then you can put whatever actions in you want in the If/Then/Else function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.