Now I was wondering if I could take it into a "higher level" but trying to make it if you press arrow key up OR w character moves up.
So anyone could help me with a little problem?
These are the lines of the script:
The default with arrow keys movement.
CODE
case Input.dir4
when 2
move_down
when 4
move_left
when 6
move_right
when 8
move_up
#end
And this is the wasd part.
CODE
if Input.press?(Input::Y)
move_down
elsif Input.press?(Input::X)
move_left
elsif Input.press?(Input::Z)
move_right
elsif Input.press?(Input::R)
move_up
end
end
move_down
elsif Input.press?(Input::X)
move_left
elsif Input.press?(Input::Z)
move_right
elsif Input.press?(Input::R)
move_up
end
end
Thanks.