{"author_link":"\/users\/risminator","author_name":"Risminator","author_uid":"risminator","comments":[],"epoch":1713702195,"event":"LD55","format":"md","ldjam_node_id":394355,"likes":3,"metadata":{"p_key":"206486","p_author":"Risminator","p_authorkey":"1386816","p_urlkey":"443020","p_title":"Godot's AnimationPlayer is incredibly powerful! Here's how we used it","p_cat":"LDJam ","p_event":"LD55","p_time":"1713702195","p_likes":"3","p_comments":"0","p_status":"WAYBACK","us_key":"1386816","us_name":"Risminator","us_username":"risminator","event_start":"1712966400","event_key":"120","event_name":"Ludum Dare 55"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD55","removed_author":false},"_superparent":383062,"_trust":1,"author":386816,"body":"![swipe_animation.gif](\/\/\/raw\/007\/e5\/z\/64943.gif)\n\nThe game is available [here](https:\/\/ldjam.com\/events\/ludum-dare\/55\/akinos-dungeon)! **Playable HTML5 version** is also available via itch link, check it out!\n\n# AnimationPlayer\nWhile 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!\nHere's how we used it to create an attack for one of our mobs in-game:\n![animation_player.png](\/\/\/raw\/007\/e5\/z\/649a7.png)\n\n:walking: First, the crusader is walking with no attack with normal speed\n\n:dagger: Then, lock_on() function is called, which determines the attack's direction (at the player)\n\n:stopwatch: While locking on, the crusader:\n+ is standing still, the speed is 0\n+ takes an winding-up aiming pose\n+ gets charged up with color to telegraph a coming attack\n\n:cyclone: After the charge-up, the crusader makes a dash:\n+ the speed becomes much higher than its normal one\n+ an attack swipe becomes visible and its collision becomes active\n+ crusader takes a swiping pose\n+ color returns to normal\n\n:levitate: After an attack, it takes some tome for the crusader to recover. Which gives the player a chance to strike back!\n\nThis way, you can modify almost all of objects' properties (even ones you've declared!), call their methods, and time all that perfectly.\n\n**Here's how it turned out in-game!**\n\n![swipe_example_gameplay.gif](\/\/\/raw\/007\/e5\/z\/649aa.gif)\n\n**Akino\u2019s Dungeon** is a challenging, addictingly fun top-down arcade where you\u2019ll 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](https:\/\/ldjam.com\/events\/ludum-dare\/55\/akinos-dungeon)!","comments":0,"created":"2024-04-20T21:19:25Z","files":[],"files-timestamp":0,"id":394355,"love":3,"love-timestamp":"2024-04-21T16:50:24Z","meta":[],"modified":"2024-04-21T16:50:24Z","name":"Godot's AnimationPlayer is incredibly powerful! Here's how we used it","node-timestamp":"2024-04-21T12:23:15Z","parent":391094,"parents":[1,5,9,383062,391094],"path":"\/events\/ludum-dare\/55\/akinos-dungeon\/godots-animationplayer-is-incredibly-powerful-heres-how-we-used-it","published":"2024-04-21T12:23:15Z","scope":"public","slug":"godots-animationplayer-is-incredibly-powerful-heres-how-we-used-it","subsubtype":"","subtype":"","type":"post","version":1235312},"node_metadata":{"n_key":"394355","n_urlkey":"443020","n_parent":"391094","n_path":"\/events\/ludum-dare\/55\/akinos-dungeon\/godots-animationplayer-is-incredibly-powerful-heres-how-we-used-it","n_slug":"godots-animationplayer-is-incred","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"386816","n_created":"1713647965","n_modified":"1713718224","n_version":"1235312","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/55\/akinos-dungeon\/godots-animationplayer-is-incredibly-powerful-heres-how-we-used-it","text":"![swipe_animation.gif](\/\/\/raw\/007\/e5\/z\/64943.gif)\n\nThe game is available [here](https:\/\/ldjam.com\/events\/ludum-dare\/55\/akinos-dungeon)! **Playable HTML5 version** is also available via itch link, check it out!\n\n# AnimationPlayer\nWhile 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!\nHere's how we used it to create an attack for one of our mobs in-game:\n![animation_player.png](\/\/\/raw\/007\/e5\/z\/649a7.png)\n\n:walking: First, the crusader is walking with no attack with normal speed\n\n:dagger: Then, lock_on() function is called, which determines the attack's direction (at the player)\n\n:stopwatch: While locking on, the crusader:\n+ is standing still, the speed is 0\n+ takes an winding-up aiming pose\n+ gets charged up with color to telegraph a coming attack\n\n:cyclone: After the charge-up, the crusader makes a dash:\n+ the speed becomes much higher than its normal one\n+ an attack swipe becomes visible and its collision becomes active\n+ crusader takes a swiping pose\n+ color returns to normal\n\n:levitate: After an attack, it takes some tome for the crusader to recover. Which gives the player a chance to strike back!\n\nThis way, you can modify almost all of objects' properties (even ones you've declared!), call their methods, and time all that perfectly.\n\n**Here's how it turned out in-game!**\n\n![swipe_example_gameplay.gif](\/\/\/raw\/007\/e5\/z\/649aa.gif)\n\n**Akino\u2019s Dungeon** is a challenging, addictingly fun top-down arcade where you\u2019ll 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](https:\/\/ldjam.com\/events\/ludum-dare\/55\/akinos-dungeon)!","title":"Godot's AnimationPlayer is incredibly powerful! Here's how we used it","wayback_source":[]}