Posted March 15, 2020 by Grimland
[9:00am]
It would seem the idea i had for the player animation has gone south.
What did work was this:
When it came to adding animations i though it would as simple as adding a new if-then-else routine with the new animation sprites, but alas that didn't go as planned. When it detects movement it simply plays the last frame from the 1st frame walking animation, and when at rest it only plays the last frame.
Here is the code that was added and i even tried resizing all the sprites to the same size ( earlier i had the player walking on air and so that fixed that minor issue ).
if (place_meeting(x,y,oShadows)) // What to do when player in shadows { sprite_index = sPlayer; image_index=1; if (hsp == 0) // if player is moving { sprite_index = sDarkPlayerR; // play skeletong walk image_speed =1; } }
Hopefully it's just a beginner error but i will figure this one out eventually.