How To Make A Pause Menu in Godot 4.3

preview_player
Показать описание
Today, I will show you how to create a pause, resume, and restart button in Godot. I am working on Godot 4.3, but it should work just fine for other versions of Godot 4.
@CodingWorm
Code Used:
func _on_pause_pressed():
get_tree().paused = true

func _on_resume_pressed():
get_tree().paused = false

func _on_restart_pressed():
get_tree().paused = false
get_tree().reload_current_scene()
Рекомендации по теме
Комментарии
Автор

how do i make it so the mouse reapears

lilfaima
Автор

help me pleasee when i pause the game my player2d jump because i did a game for android and when i click jump but i wont the player dont jump when i click pause can you help me?

andreacecere