Using shader in Godot 4

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



Category:
Tutorial
Duration: 19:14
2,180 views
76


We gonna learn how to use shader to give a feedback of our enemy and our player getting hurt. We are going to create export color that we can set up in the inspector, and we gonna trigger the shader through the code. Like & Subscribe! :)

#godot4 #godotengine #godot #shaders #godotshaders #shadertutorial

Asset link is here: https://jeanmakesgames.itch.io/2d-rpg-asset
Godot shaders: https://godotshaders.com/

Wishlist my game "Lone Knight" here: https://store.steampowered.com/app/2211930/Lone_Knight/

**Udemy Course:**
For halloween I'm discounted my courses, valid until the 31st of October! :)

My godot engine 4 course is discounted here:
https://www.udemy.com/course/learn-godot-4-by-making-a-2d-game/?couponCode=HALLOWEENGODOT
Coupon Code: HALLOWEENGODOT

Create a 2d platformer / metroidvania in godot engine 3:
https://www.udemy.com/course/create-a-2d-platformer-game-with-godot-engine/?couponCode=HALLOWEENGODOT
coupon: HALLOWEENGODOT

Create a 2d rpg with godot engine 3:
https://www.udemy.com/course/create-a-2d-rpg-with-the-godot-engine/?couponCode=HALLOWEENGODOT
coupon: HALLOWEENGODOT

Learn C# in godot 3 by creating a 2d rpg:
https://www.udemy.com/course/learning-csharp-with-godot/?couponCode=HALLOWEENGODOT
coupon: HALLOWEENGODOT

Happy halloween to everyone!

Timeline:
00:00 Preview
00:09 Introduction
01:27 Opening the scene of our enemy
01:49 Creating the shader
03:30 Overview of the type of shader available in Godot
04:14 Starting to code the shader
07:20 Creating export variable for the color
01:19 Triggering the shader through code
12:37 Testing the code
13:30 Adding the shader to the player
14:40 Creating a hitbox to trigger the shader
15:55 Calling the shader function in the hitbox
18:27 Last fix on the hitbox collision




Other Videos By Jean Makes Games


2024-02-202D Metroidvania - 2 - Coding the player movement
2024-02-192D Metroidvania - 1 - Creating the player and its animations
2023-12-22Coding combo input for my metroidvania || devlog 5
2023-12-20Making better enemies design by learning from Hollow Knight || devlog #4
2023-12-17Third devlog and making my game juicier with tween...but how?
2023-12-15Designing world for my Metroidvania
2023-12-14First devlog and making my main player worst somehow...but why?
2023-12-03Jumping and falling in 3D with animation & state machine || 3D RPG Serie in Godot 4.2
2023-11-25Two ways to opens door in my Godot 4.1 2D RPG game
2023-11-19Adding a house using modular assets in Godot 4
2023-10-18Using shader in Godot 4
2023-10-16Killing the enemy and looting coin in Godot 4
2023-10-123D RPG - Rotating the camera around the player with a controller #godot4 #godot #godotengine #rpg
2023-10-103D RPG - Coding the player movement and animations #godot4 #3d #rpg #3drpg #zelda #godot3d
2023-10-093D RPG - Setup our 3d project and creating the ground #3DRPG #rpg #3DRPGGodot #godot4 #godotengine
2023-10-08Creating an enemy that can patrol randomly #godot4 #godotengine
2023-08-25Creating the GUI - 2D RPG Serie In Godot 4.1 #godot4 #rpg #gamedev
2023-08-18Player life system & Killing the player #godot4 #2drpg #rpg #zelda #godotengine
2023-08-11Create coins & use Static variable for my 2D RPG in Godot 4.1 #godot4 #gamedev #tutorial
2023-08-08Create two type of cameras in Godot 4.1 - 2D RPG Serie #godot4 #2drpg #rpg #zelda
2023-08-042D Godot 4.1 RPG - 6 - Tilemap & terrain



Tags:
rpg
actionrpg
godot rpg
rpg tutorial godot
godot 4.1
godot 4 rpg
godot rpg tutorial
godot engine tutorial
godot engine zelda
rpg jump
jump rpg
zelda jump
zelda jump 2D
heartbeast
heartbeast rpg
godot autotile
godot tiles
godot terrains
godot 4 autotile
godot4.1
godot static variable
gdscript tutorial
gdscript2
static variable tutorial
create an enemy
godot 4
godot
shader
shader tutorial
godot shader tutorial