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...
Смотрите видео 2D Metroidvania - 5 - Sword attack and state machine онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Jean Makes Games 23 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,883 раз и оно понравилось 132 людям.