2 Player Battle Simulator Step 7: Death and Damage animations for the Knight

Asyou can see from the title we are getting pretty close to finishing the game and we only have 1 more required step left, and 2 optional steps. But for now lets get into this step.

When I say animation it is more like a quick costume change in terms of the damage animation but the death animation is a little bit more tricky and it is more like a real animation.

Lets first take a look at the damage animation.

Now with this code we will switch from the normal non damaged knight,

To the damaged Knight

Keep in mind the knight will only breifly flash red and then he will return to his normal state so we added the wait 1 second command and then we have the knight go back to his usual state.

But in the case of the death animation things will be very different.

this is the code for the knights death animation.

Now I am sorry that it is this long but I wanted it to be detailed. But the basic idea is that after the Knights health goes below 1 he starts to crumble to dust.

And the only thing is you have to draw all of the costume which will be slow and quite boring but you should be able to get through it.

Thanks so much for reading this blog and be sure to subscribe to my YT channel @Drago Gaming https://www.youtube.com/channel/UCrlNUqQVBxLIbdltHQBdcYg?