- Joined
- May 11, 2007
- Messages
- 54
In this tutorial I show how to move around with keyboard with one or more units, but only with one player
sad
.(This will need several triggers)
First walking forward.
First walking forward.
-
Forward On
-
Events
-
Player - Player 1 (Red) Presses the Up Arrow key
-
-
Conditions
-
Actions
-
Trigger - Turn on Forward <gen>
-
-
-
Forward Functions
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
Camera - Pan camera for Player 1 (Red) to (Position of (Picked unit)) over 1.00 seconds
-
Unit - Order (Picked unit) to Move To ((Position of (Picked unit)) offset by 110.00 towards (Facing of (Picked unit)) degrees)
-
-
-
-
-
Forward Off
-
Events
-
Player - Player 1 (Red) Releases the Up Arrow key
-
-
Conditions
-
Actions
-
Trigger - Turn off Forward <gen>
-
-
-
Left On
-
Events
-
Player - Player 1 (Red) Presses the Left Arrow key
-
-
Conditions
-
Actions
-
Trigger - Turn on Left Functions <gen>
-
-
-
Left Functions
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
Unit - Make (Picked unit) face ((Facing of (Triggering unit)) + 5.00) over 0.01 seconds
-
-
-
-
-
Left Off
-
Events
-
Player - Player 1 (Red) Releases the Left Arrow key
-
-
Conditions
-
Actions
-
Trigger - Turn off Left Functions <gen>
-
-
-
Right On
-
Events
-
Player - Player 1 (Red) Presses the Right Arrow key
-
-
Conditions
-
Actions
-
Trigger - Turn on Right Functions <gen>
-
-
-
Right Functions
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
Unit - Make (Picked unit) face ((Facing of (Triggering unit)) - 5.00) over 0.01 seconds
-
-
-
-
-
Right Off
-
Events
-
Player - Player 1 (Red) Releases the Right Arrow key
-
-
Conditions
-
Actions
-
Trigger - Turn off Right Functions <gen>
-
-
Last edited: