Day 5 - Troubleshooting
Brilliance & Gloom Ver 2.0 » Devlog
[9:00am]
It would seem the idea i had for the player animation has gone south.
What did work was this:
- Create 1 player sprite with two frames, one being a Knight and one being a skeleton.
- When crossing from Light to Dark on level it does the image swap just fine
- but the character simply slides along since there is no animation for walking or jumping
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.
Brilliance & Gloom Ver 2.0
Status | Released |
Author | Grimland |
Genre | Platformer |
Tags | 2D, luxjam, Singleplayer |
Languages | English |
More posts
- Day 6 - Todo List updateMar 15, 2020
- Day 4 - More enemiesMar 13, 2020
- Day 3 - AnimationsMar 12, 2020
- Day 2 CompleteMar 11, 2020
- Day 1 in the bagMar 11, 2020
Leave a comment
Log in with itch.io to leave a comment.