Тёмный

how to create dash with effect - Learn Godot 4 2D - no talking 

DevDrache
Подписаться 3 тыс.
Просмотров 2,4 тыс.
50% 1

Опубликовано:

 

30 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@rush_boi
@rush_boi 5 месяцев назад
Your channel is the reason why I'm still working on my game 😊 fantastic work and video 👍
@DevDrache
@DevDrache 5 месяцев назад
thank you, i am glad to be of help
@SentryX7
@SentryX7 3 месяца назад
SAME!!😂
@AliceMadTeaParty
@AliceMadTeaParty 5 месяцев назад
Your tutorials are what keeps me going with godot, thanks mate!
@DevDrache
@DevDrache 5 месяцев назад
i am glad to be of help 😊
@ashharkausar413
@ashharkausar413 2 месяца назад
You're amazing, ty!
@DevDrache
@DevDrache 2 месяца назад
thank you :)
@1247theGreatest
@1247theGreatest 5 месяцев назад
This is really good! Thanks for the tip!
@LucasPereira-pu6cq
@LucasPereira-pu6cq 5 месяцев назад
Thanks. Great tutorial
@GustavoArrosFelipsp
@GustavoArrosFelipsp 4 месяца назад
excellent tutorial, how do I make it so that it is activated only 1 time for each jump, because like this, you can go around the map only using dash, it is infinite
@DevDrache
@DevDrache 4 месяца назад
You have to add a dash counter that resets when you want it to. It would be easiest if the dash is only possible in the air and the counter resets as soon as the player touches the ground Something like this: var dashCounter = 0 ... func _physics_process(): ... #rewrite dash activation if Input.is_action_just_pressed("attack") && not is_on_floor() && dashCounter < 0: dashCounter = 1 ... if is_on_floor(): dashCounter = 0
@GustavoArrosFelipsp
@GustavoArrosFelipsp 4 месяца назад
@@DevDrache Thank you for your response, it helped me a lot, yes a correction "if Input.is_action_just_pressed("attack") && not is_on_floor() && dashCounter < 1:" must be less than 1 dashCounter. works perfect using your idea
@top5game635
@top5game635 3 месяца назад
hi how can i do limeted dash plz respond and thx for tut
@DevDrache
@DevDrache 3 месяца назад
With this code you can only do it once in a jump and reset it as soon as you touch the ground: var dashCounter = 0 var dashLimit = 1 ... func _physics_process(): ... #rewrite dash activation if Input.is_action_just_pressed("attack") && not is_on_floor() && dashCounter < dashLimit: dashCounter = 1 ... if is_on_floor(): dashCounter = 0
@top5game635
@top5game635 3 месяца назад
@@DevDrache thx u smch man ur a hero
@tomwellson
@tomwellson 4 месяца назад
how i can make short cooldown for dash
@DevDrache
@DevDrache 4 месяца назад
At the top of the code you need another variable like: var dashOnCooldown = false The dash activation must be extended: if Input.is_action_just_pressed("attack") && not dashOnCooldown: When Dash is activated, the variable is set to true: ... if Input.is_action_just_pressed("attack") && not dashOnCooldown: dashOnCooldown = true ... Then you only need one more timer and set dashOnCooldown to false with the signal from the timer.
@Threvel-b1v
@Threvel-b1v Месяц назад
The dash is not reset what is problem?
@DevDrache
@DevDrache Месяц назад
if it does not reset, there is probably a problem with the dashDurationTimer. check if “_on_dash_duration_timer_timeout()” function fires
@Threvel-b1v
@Threvel-b1v Месяц назад
@@DevDrache okey okey more my dash in directions follow one direction i have + problens 😢
@DevDrache
@DevDrache Месяц назад
unfortunately i don't understand you
@Threvel-b1v
@Threvel-b1v Месяц назад
Creator boss with IA please i like you counteud
@Flamebamboo
@Flamebamboo 5 месяцев назад
For some reason my dash effects goes below the player
@DevDrache
@DevDrache 5 месяцев назад
Could it be that your sprite node is not at position (0,0)? The dash effect gets the position from the character body node.
@Threvel-b1v
@Threvel-b1v Месяц назад
Hey
@Threvel-b1v
@Threvel-b1v Месяц назад
I need you help, i like you vídeo more need you script completed 😢😢😢pleaseeeeeee¡!¡!¡!
@DevDrache
@DevDrache Месяц назад
Lucky you, I still have it. I have it upload to github now: github.com/derdrache/tutorial_library/tree/main/dash%20effect
@GemLex-s7w
@GemLex-s7w 5 месяцев назад
Please can you make a video about how to make an enemy jump when they see you I need a video about it so badly 😢
@Dunkable
@Dunkable 5 месяцев назад
I'm still new but couldn't you put a RayCast on your enemy and make them jump when the player enters the RayCast?
@DevDrache
@DevDrache 5 месяцев назад
sure, I'll put it on the list. do you need it with line of sight (LOS) or without? Maybe I can help you with a few explanations until the video arrives: Give the enemy an area node which then checks whether the player enters the area. Then you can use the size of the area node to determine when the opponent sees the player. if you need LOS check, then you have to work with raycasts and the player position.
@DevDrache
@DevDrache 5 месяцев назад
@Dunkable works, but has a few problems. with a static raycast: if the player comes from above or behind, the enemy will not react. it is also not 100% of the same direction. with a flexible raycast (search at the player position): you have an automatic line of sight (LOS) check. Here it depends on whether you want this or not.
Далее
Why smaller pixel art is actually harder
19:22
Просмотров 371 тыс.
Quinn did NOT expect this one - ESL Dota 2
00:34
Просмотров 193 тыс.
2D Movement in Godot 4 using TileMap
19:27
Просмотров 34 тыс.
Why you Draw Bad Assets || 2D Game Art
13:00
Просмотров 85 тыс.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
2D Platformer Coyote Time (Godot 4)
10:31
Просмотров 1,3 тыс.
Every 2D Node Explained in 9 Minutes !
9:19
Просмотров 356 тыс.
How to Make a Good 2D Camera
11:38
Просмотров 412 тыс.
How to Create WALL JUMPING & SLIDING in Godot 4
13:37
Quinn did NOT expect this one - ESL Dota 2
00:34
Просмотров 193 тыс.