2D Platformer Attacks and Enemy Setup ~ Godot 4 Tutorial
Chris' Tutorials
Guide on how to set up basic platformer attacks and enemies inside of Godot 4. This is the final part on my mini-series.
Tutorial Start Point ➣ https://github.com/ChrisTutorials/SidescrollerQuickstart-StateMachine-AnimationTree Final Project Download ➣ https://www.patreon.com/posts/platformer-quick-81080459
Part 1 ➣ https://youtu.be/43c-Sm5GMbc Part 2 ➣ https://youtu.be/fuGiJdMrCAk
Project Art Pack Used (CC0 Universal 1.0) https://anokolisa.itch.io/sidescroller-pixelart-sprites-asset-pack-forest-16x16
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me https://linktr.ee/ChrisTutorials https://www.patreon.com/christutorials https://chris-tutorials.itch.io/
00:00:00 - What to Expect 00:00:29 - Download Below 00:00:40 - Starting Point 00:00:56 - Attack Animation 00:03:15 - Attack 2 Animation 00:04:26 - Animation Tree Attack 1 and Attack 2 Nodes 00:06:09 - Create Attack State 00:07:25 - Switch to Attack from Ground 00:10:23 - Attack State Logic 00:15:13 - How to Get AnimationTree Playback 00:15:53 - Switching from Attack 1 Animation 00:16:41 - Move to lower case move 00:17:20 - Travel to Ground / Attack2 Animations 00:18:34 - Centering Player Sprite2D 00:20:04 - Sword Hitbox 00:22:42 - Make Test Enemy 00:24:05 - Snail Enemy Setup 00:26:20 - Making Objects Damageable 00:27:42 - Sword Hit on Damageable Object 00:29:31 - Debug Print Damage on Hit 00:30:00 - Disabling and Enabling Sword Hitbox 00:32:12 - Show Damage Text on Hit 00:36:28 - Health Text Manager 00:38:40 - Floating Text Label 00:41:53 - Floating Text Label Scripting 00:43:59 - Set Text Color 00:45:15 - Snail Dead Animation 00:46:20 - Snail Animation Tree 00:47:08 - Snail State Machine 00:47:57 - Hit State 00:50:56 - State Interrupt 00:53:50 - Snail Character Movement Script 00:55:25 - Remove Character after Dead Animation 00:56:33 - Snail Movement 00:58:15 - Removing Player Enemy Collisions 01:00:15 - Snail Movement Logic 01:01:10 - Hit Knockback on Sword Hit 01:03:42 - Exit Hit State on Timer 01:05:17 - Directional Knockback (Left / Right) 01:09:08 - Flipping Sword Hitbox Position Left / Right 01:13:46 - Show Visible Collision Shapes for Testing 01:14:28 - Mass Snail Duplication 01:15:01 - Fix: Character Not on Ground at Start 01:16:24 - Wrapup 01:17:08 - Finished Project Download Below ... https://www.youtube.com/watch?v=NVAXjTzqTyE
211441959 Bytes