- 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>
-
Events
-
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)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Events
-
Forward Off
-
Events
- Player - Player 1 (Red) Releases the Up Arrow key
- Conditions
-
Actions
- Trigger - Turn off Forward <gen>
-
Events
-
Left On
-
Events
- Player - Player 1 (Red) Presses the Left Arrow key
- Conditions
-
Actions
- Trigger - Turn on Left Functions <gen>
-
Events
-
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
-
Loop - Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Events
-
Left Off
-
Events
- Player - Player 1 (Red) Releases the Left Arrow key
- Conditions
-
Actions
- Trigger - Turn off Left Functions <gen>
-
Events
-
Right On
-
Events
- Player - Player 1 (Red) Presses the Right Arrow key
- Conditions
-
Actions
- Trigger - Turn on Right Functions <gen>
-
Events
-
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
-
Loop - Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Events
-
Right Off
-
Events
- Player - Player 1 (Red) Releases the Right Arrow key
- Conditions
-
Actions
- Trigger - Turn off Right Functions <gen>
-
Events
Last edited: