2D Metroidvania - 5 - Sword attack and state machine
Fifth episode of my new 2D Metroidvania serie for Godot 4.2! We are creating the sword attack with custom input and state machine today. Like and subscribe!
Timeline
00:00 Introduction
00:52 What we gonna do
01:51 Adjusting the collision shape to my sword sprite
02:53 Activating the collision shape on the sword only when I'm using it
03:56 Flipping the sword collision shape in the direction of the player
06:04 Disabling the collision shape through code
06:49 Creating the input for our sword
07:51 Creating the sword function
08:02 Creating the state machine
14:48 Moving the player while using the sword
18:27 Outro
Wishlist "Lone Knight" on Steam: https://store.steampowered.com/app/2211930/Lone_Knight/
Asset: https://jeanmakesgames.itch.io/2d-metroid-youtube-serie
Download Godot 4.2: https://godotengine.org/download/windows/
New course "Create a 2D RPG game and introduction to 3D game": https://www.udemy.com/course/create-a-2d-rpg-and-a-3d-game-in-godot-42/?couponCode=GODOT42FEBRUARY
Coupon code: GODOT42FEBRUARY
Other Videos By Jean Makes Games
Other Statistics
Hollow Knight Statistics For Jean Makes Games
At present, Jean Makes Games has 47,926 views spread across 7 videos for Hollow Knight, and about an hours worth of Hollow Knight videos were uploaded to his channel. This is 7.35% of the total watchable video on Jean Makes Games's YouTube channel.