The Easiest Way to Animate: Programmatically with Tweens
Channel:
Subscribers:
114,000
Published on ● Video Link: https://www.youtube.com/watch?v=XYZvM71lwPY
This video discusses the method I used to animate a certain type of enemy from an open-source game I made awhile back. This enemy was animated entirely without spritesheets - instead, I used tweens to stretch and distort the enemy's body to create movement and attack animations. This method saves a lot of time creating spritesheets, saves space your game takes up, and has the potential to create very smooth and natural-looking animations.
You can find the full source code for the game "Cavern" here:
https://github.com/kyleschaub/cavern
The code for this specific enemy:
https://github.com/kyleschaub/cavern/blob/master/source/enemies/spike.lua
Music: Zanarkand Ruins - Final Fantasy X-2