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!
Не написал очистку памяти, после того как пуля уйдет за экран ! 😁Когда память засрётся - игра будет тормозить. Например If (x>600)&&(y>500): queue_free()
@@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.