Godot's AnimationPlayer is incredibly powerful! Here's how we used it

swipe_animation.gif

The game is available here! Playable HTML5 version is also available via itch link, check it out!

AnimationPlayer

While it does what you may expect from its name - making animations for assets - in Godot it has much more potential to even replace some code! Here's how we used it to create an attack for one of our mobs in-game: animation_player.png

:walking: First, the crusader is walking with no attack with normal speed

:dagger: Then, lock_on() function is called, which determines the attack's direction (at the player)

:stopwatch: While locking on, the crusader: + is standing still, the speed is 0 + takes an winding-up aiming pose + gets charged up with color to telegraph a coming attack

:cyclone: After the charge-up, the crusader makes a dash: + the speed becomes much higher than its normal one + an attack swipe becomes visible and its collision becomes active + crusader takes a swiping pose + color returns to normal

:levitate: After an attack, it takes some tome for the crusader to recover. Which gives the player a chance to strike back!

This way, you can modify almost all of objects' properties (even ones you've declared!), call their methods, and time all that perfectly.

Here's how it turned out in-game!

swipeemexample/emgameplay.gif

Akino’s Dungeon is a challenging, addictingly fun top-down arcade where you’ll have to dodge and maneuver to kill enemies with the help of your orbital familiars. Pick skulls, summon familiars and feed Akino! Check our game out on our page, link here!