E
EZTALES
Guest
hey yall,
i wrote this little bit of code but i need it for 7 sprites instead of only 3 in this case, i assume its a easy fix but i have no idea on how to do it any help is great!
i wrote this little bit of code but i need it for 7 sprites instead of only 3 in this case, i assume its a easy fix but i have no idea on how to do it any help is great!
Code:
Step Event
if keyboard_check_pressed(vk_right) and image_index != 2 then image_index += 1 //moves player right
if keyboard_check_pressed(vk_left) and image_index != 0 then image_index -= 1 //moves player left