Тёмный

How To Create a 2D Projectile/Bullet Godot 4.3 Tutorial || Weekly Godot Challenge #21 

Coding Quests
Подписаться 18 тыс.
Просмотров 1,2 тыс.
50% 1

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

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@jemhir8698
@jemhir8698 3 месяца назад
Can you make a wall jump tutorial too???
@f0xrz
@f0xrz 2 месяца назад
inside the player script: func handle_wall_jump(): if not is_on_wall(): return var wall_normal = get_wall_normal() if Input.is_action_just_pressed("ui_left") and wall_normal == Vector2.LEFT: velocity.x = wall_normal.x * SPEED velocity.y = JUMP_VELOCITY jump_sound.play() #Sound for jump if Input.is_action_just_pressed("ui_right") and wall_normal == Vector2.RIGHT: velocity.x = wall_normal.x * SPEED velocity.y = JUMP_VELOCITY jump_sound.play()#Sound for jump then on func _physics_process(delta): add this line: handle_wall_jump() You can put it on default script movement player. Have fun!
@hanyelsafty-z6l
@hanyelsafty-z6l 3 месяца назад
what if I don't want the bullet to be a child of the player?, when I move it takes the position of the player when he jumps it jumps with him
@CodingQuests
@CodingQuests 3 месяца назад
add the chid to another node xd
@darkhunter777
@darkhunter777 3 месяца назад
Не написал очистку памяти, после того как пуля уйдет за экран ! 😁Когда память засрётся - игра будет тормозить. Например If (x>600)&&(y>500): queue_free()
@JFran.
@JFran. 2 месяца назад
There's a signal for it, you don't need to do an if
@darkhunter777
@darkhunter777 2 месяца назад
@@JFran. Какой сигнал ? Сигнал только отображает действие, но не очищает память !
@JFran.
@JFran. 2 месяца назад
@@darkhunter777 i didn't understand, RU-vid doesn't let me translate the reply. But if you're asking about the signal, i think the name is screen_exited or something like that. Just add queue_free() inside the signal's generared code and that's all.
@Teardrop-u4z
@Teardrop-u4z 3 месяца назад
Two
@claud596
@claud596 3 месяца назад
One
Далее
Animation vs. Geometry
9:02
Просмотров 12 млн
Which part do you like?😂😂😂New Meme Remix
00:28
5 Must-Use Godot UI Nodes Explained
9:31
Просмотров 4,5 тыс.
Starting Your Unity Game Flawlessly (8 Steps)
9:51
Просмотров 6 тыс.
Aseprite Comes to Godot!
10:20
Просмотров 134 тыс.
What size should your assets be? | HD 2D GAME ART
12:10
The Future of Game Development
8:58
Просмотров 1,3 млн
I made a game using Godot for the first time
7:35
Просмотров 1,2 млн
Which part do you like?😂😂😂New Meme Remix
00:28