Geoff Jones
Member
Hello all, Im making a game similar to Ultima 5 where the movement is based on 16x16 grid squares. So each time you press up down left or right, it will jump 1 tile in that direction similar to this -
My question is, how do I get a sound to play at each step?
Here is the code I have for the movement
This code is in a step even in the player object.
Thanks for your help
Here is the code I have for the movement
Code:
/// Move player
var xDirection, yDirection
xDirection =keyboard_check(vk_right) - keyboard_check(vk_left);
yDirection =keyboard_check(vk_down) - keyboard_check(vk_up);
x += xDirection *16
y += yDirection *16
Thanks for your help