Log in with your itch.io account to leave a comment.
Great game! I really like the slow-motion animation when the player wins. Controls and rag-doll physics felt good. The overall look and feel of the game was consistent. How did you handle the color animation when a player was hit? Update? ITween? IEnumerator? Just curious, as I thought the effect was a great touch. Thanks!
Thanks - always really nice to hear someone liked your creation! :)
That particular element was done in a really basic way: When a player takes a hit, a float value is set to 1. This value is then subtracted from the green and blue channels of the material making it fully red and gradually fading back to full colour as the value is reduced each update. I partly did it just for aesthetic reasons but thought it, combined with animation, really helped to make it clear who had just been hit. The other use I have for the same value is that it represents a brief invulnerability period to prevent getting absolutely hammered with no chance to break out.
Cool. Thanks for the reply. Yea I was curious about how you handled multiple attacks within that short period of time. Invulnerability makes sense.