Hello, everybody. I might be a newbie with scripting, but at least I'm trying to learn. I found out that with SDK, it's easy to make player move in eight directions by doing this:
I would like to know how to make player use different graphic file when moving in the NE NW SE SW directinons.
The graphic file would look like this:
http://www.univelka.net/rmxp_res/001-Fighter01B.png
def update_player_movement
# Move player in the direction the directional button is being pressed
case Input.dir8
when 1
move_lower_left
when 2
move_down
when 3
move_lower_right
when 4
move_left
when 6
move_right
when 7
move_upper_left
when 8
move_up
when 9
move_upper_right
end
end
# Move player in the direction the directional button is being pressed
case Input.dir8
when 1
move_lower_left
when 2
move_down
when 3
move_lower_right
when 4
move_left
when 6
move_right
when 7
move_upper_left
when 8
move_up
when 9
move_upper_right
end
end
I would like to know how to make player use different graphic file when moving in the NE NW SE SW directinons.
The graphic file would look like this:
http://www.univelka.net/rmxp_res/001-Fighter01B.png