Create spikes to damage the player || 2D Metroidvania in Godot 4.2
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
Timeline:
00:00 Introduction
00:14 Start
00:44 Create the spike scene
01:49 Create the spikes animations
03:55 Activating and deactivating the collision shape
05:08 Create the script for the sprite
05:37 Connecting the signal of my hitbox to the script
06:11 Saving my spike scene
06:23 Setting up the collision layer
07:21 Adding my spike to the level 1
09:02 Create a state machine for the spike
10:35 Placing the animated spike in the level
10:47 Toggle the state machine of the spike in the inspector
11:23 Create the function that toggle the state
12:53 Flipping vertically the spike
13:56 Outro