2D Metroidvania - 5 - Sword attack and state machine

Published: 23 February 2024
on channel: Jean Makes Games
3,883
132

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/22...

Asset: https://jeanmakesgames.itch.io/2d-met...

Download Godot 4.2: https://godotengine.org/download/wind...

My course (discounted until the 7th of august 2024):
2D Procedurally generated Roguelike in Godot 4.2:
Course: https://www.udemy.com/course/create-a...
Coupon Code: GODOT4JULY2024

Create a 2D RPG and a 3D game in Godot 4:
Course: https://www.udemy.com/course/create-a...
Coupon Code: GODOT4JULY2024

OTHERS:
Learn Godot 4 by making 2 games outdated:
Course: https://www.udemy.com/course/learn-go...

Cours en Français: Créer un RPG en 2D avec Godot 4: (course in French)
Cours: https://www.udemy.com/course/creer-un...


Watch video 2D Metroidvania - 5 - Sword attack and state machine online without registration, duration hours minute second in high quality. This video was added by user Jean Makes Games 23 February 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,883 once and liked it 132 people.