2D Metroidvania - 5 - Sword attack and state machine

Subscribers:
6,450
Published on ● Video Link: https://www.youtube.com/watch?v=_sumaQtrx8A



Hollow Knight
Game:
Duration: 18:38
4,299 views
140


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







Tags:
2d metroidvania
2d metroidvania godot
2d metroidvania godot 4
tutorial godot 4.2
tutorial godot 4
2d tutorial godot 4
2d platformer godot 4
2d platformer
game dev godot 4
hollow knight
hollow knight godot
hollow knight godot 4
create player godot 4
godot metroidvania tutorial
godot action platformer
godot 4 metroidvania tutorial
godot 4 action platformer
2d game development
sword attack godot 4
melee attack
melee attack godot 4
state machine godot 4



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.