This video is the follow up on the Hit animation short video and is an practical appliction how to get a jucy hit animation in your game. Here we can use a visual tool like Juice FX or do most of the process with a few lines of code (in GameMaker).

Video found here: https://www.youtube.com/watch?v=oB5Y90vniCo

The more visual approach is by using the paid software Juice FX and simply use one image for the hit animation, where you can use the preset with just one button click or customize your own animation in order to export it as a .png strip or single images. These can be used in any video game engine.

Juice FX (not sponsored, I simply love the tool) found here: https://codemanu.itch.io/juicefx

The code base approach is more universal and sets a standard/flow/template for a hit state that snaps back to an idle state. Here we define a state machine (a simple variable that controls what is supposed to be happening) and once we are in the hit state we set once all things for this state. Which is in this video blending/tining/recolor the image/sprite, swapping it to a hit image/sprite and squishing the image/sprite upwards. You can of course mix and match and only do one of these steps. A hit state is a brief flash, so we run down a timer that resets after half a second or even less the state and all the changed values to the idle default.

Tldr:
– recolor/low
– swap images
– squish and resize


👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie

Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)

CHAPTERS
——————————————————————————————————-
0:00 What we will do
1:07 Subscribe
1:19 Visual – Hit animation with a sprite/image
2:45 Code – Particle system, create a hit ring
6:15 Code – Particle system, create a hit spikes

1up Indie

View all posts

Add comment

Your email address will not be published.