Save-Point
A way to get players to stop moving - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: A way to get players to stop moving (/thread-3662.html)



A way to get players to stop moving - PK8 - 08-04-2011

So I'm trying to create my own Input.dir4 case, but I'm having trouble figuring out how to make the character stop moving through scripting in events.

Here's what I have so far:

I have this as a conditional branch.
Code:
$game_player.moving? or $game_system.map_interpreter.running? or $game_player.instance_eval("@move_route_forcing") or $game_temp.message_window_showing

Within the else conditional, I have this call script:
Code:
case Input.dir4
when 2; $game_player.turn_up
when 4; $game_player.turn_left
when 6; $game_player.turn_right
when 8; $game_player.turn_down
end

The case is working but the problem is, I'm trying to get the player to stop moving which I can't pull off.