So as you can see, my player amber has a death animation similar to Mario. And incase you’re wondering how I made that, I used pixel studio app on my tablet. I want to know how to make the animation of amber’s death sprite appear like that. Make it go up and down just like Mario does. And don’t worry about the death blocks. I’m just showing you all that so amber can die faster like that. Please, let me know, how to make that work.
Hi, you could achieve this by making it all one animation (as you already did in your app) that plays when you collide with the block.
Another idea, quickly put together, is this (I assume you are using the platform-behavior):
When the player is in collision with the block, an animation plays and pressing the jump-key is simulated. After a short wait-time the platform-behavior of the ground is deactivated and your character is falling through.
I added the ‘move player away from block’-action to make sure that the player does not collide again with the block and triggers the jump-action all the time. I am not a big fan of the wait-action but in this case it makes sense: if the platform-behavior is removed immediately, the player won’t jump and just falls through the platform.
This is just a rough idea to get you started, there is probably a lot that can be optimized and it also depends on how you set up your game.
You could let easing do all the work for you:
The numbers would have to be adjusted to match your game, this is with 800x600 resolution: