R
RozeJacklyn69
Guest
Hello! I just joined and beggining to program my first game in GM!
I'm a total noob soo...
I need some help on switching between Idle and Walking animations for my player.
I have seperate animations for when my character is walking up, down, left and right, and same goes for idle.
I have separate codes for when the walking is supposed to take place (i.e when the player presses W, A, S or D)
(Something like this v)
MySpeed = 1.8
if keyboard_check(ord('S')) {
y = y + MySpeed
sprite_index = splayer_walking_down
image_speed = .5
}
And I'm having trouble switiching to when the player is supposed to be idle
Can someone help?
I'm a total noob soo...
I need some help on switching between Idle and Walking animations for my player.
I have seperate animations for when my character is walking up, down, left and right, and same goes for idle.
I have separate codes for when the walking is supposed to take place (i.e when the player presses W, A, S or D)
(Something like this v)
MySpeed = 1.8
if keyboard_check(ord('S')) {
y = y + MySpeed
sprite_index = splayer_walking_down
image_speed = .5
}
And I'm having trouble switiching to when the player is supposed to be idle
Can someone help?