2D Platformer Attacks and Enemy Setup ~ Godot 4 Tutorial

Published: 05 April 2023
on channel: Chris' Tutorials
95k
2k

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
Download Final Project
Also on Patreon
Art Pack

Part 1
Part 2

Project Art Pack Used (CC0 Universal 1.0)

Downloadable Assets, Video Courses, and Other Places to Follow Me




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


Watch video 2D Platformer Attacks and Enemy Setup ~ Godot 4 Tutorial online without registration, duration 01 hours 17 minute 30 second in high hd quality. This video was added by user Chris' Tutorials 05 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 95 thousand once and liked it 2 thousand people.