M
mik19
Guest
Can someone tell me how to make a specific locked hero. So it moves only with arrow keys.
Initialize Right
Event: Player 1 Red presses the right key
Conds: None
Acts: set moveright = true (boolean variable)
If movingplayer[1] = false then do *
[indent]Set movingplayer[1] = triggering player (player var)[/indent]
Else: Set movingplayer[2] = triggering player [(this will have to be done the amount of times = to the number of players in your game)]
--------------------------------------------
Initialize Up
Event: Player 1 Red presses the up key
Conds: None
Acts: If movingplayer[1] = false then do *
[indent]Set movingplayer[1] = triggering player (player var)[/indent]
Else: Set movingplayer[2] = triggering player [(this will have to be done the amount of times = to the number of players in your game)]
set moveup = true (boolean variable)
--------------------------------------------
Move Up
Events: Every .5 seconds of the game
Conds: Moveup = true
Actions: Pick every unit selected by movingplayer[1] and do *
[indent]Issue picked unit to move to point of picked unit + 0, 100 (point with offset)[/indent]
--------------------------------------------
Move Right
Events: Every .5 seconds of the game
Conds: Moveright = true
Actions: Pick every unit selected by movingplayer[1] and do *
[indent]Issue picked unit to move to point of picked unit + 100, 0 (point with offset)[/indent]
--------------------------------------------
Move Upright
Events: Every .5 seconds of the game
Conds: Moveup = true
Moveright = true
Actions: Pick every unit selected by movingplayer[1] and do *
[indent]Issue picked unit to move to point of picked unit + 100, 100 (point with offset)[/indent]
--------------------------------------------
Releases Up
Events: Player 1 Red releases up key
Conds: none
Acts: Set movingplayer[1] = no player
set moveup = false
--------------------------------------------
Releases right
Events: Player 1 Red releases up key
Conds: none
Acts: Set movingplayer[1] = no player
set moveright = false
Left Pressed
Events
Player - Player 1 (Red) Presses the Left Arrow key
Player - Player 2 (Blue) Presses the Left Arrow key
Player - Player 3 (Teal) Presses the Left Arrow key
Player - Player 4 (Purple) Presses the Left Arrow key
Player - Player 5 (Yellow) Presses the Left Arrow key
Player - Player 6 (Orange) Presses the Left Arrow key
Player - Player 7 (Green) Presses the Left Arrow key
Player - Player 8 (Pink) Presses the Left Arrow key
Player - Player 9 (Gray) Presses the Left Arrow key
Player - Player 10 (Light Blue) Presses the Left Arrow key
Conditions
Actions
Set TurningLeft[(Player number of (Triggering player))] = True
Left Released
Events
Player - Player 1 (Red) Releases the Left Arrow key
Player - Player 2 (Blue) Releases the Left Arrow key
Player - Player 3 (Teal) Releases the Left Arrow key
Player - Player 4 (Purple) Releases the Left Arrow key
Player - Player 5 (Yellow) Releases the Left Arrow key
Player - Player 6 (Orange) Releases the Left Arrow key
Player - Player 7 (Green) Releases the Left Arrow key
Player - Player 8 (Pink) Releases the Left Arrow key
Player - Player 9 (Gray) Releases the Left Arrow key
Player - Player 10 (Light Blue) Releases the Left Arrow key
Conditions
Actions
Set TurningLeft[(Player number of (Triggering player))] = False