Godot how to make a quit button

preview_player
Показать описание
Godot how to make quit / exit button for a game or app.
Please like and subscribe for more tutorials.

How to dowload godot :

Godot tutorial playlist :
Рекомендации по теме
Комментарии
Автор

This video it's so simple, but so useful! Thank you so much!!!

BenDrownedGameplayOficial
Автор

thanks this helped a lot, wasnt sure about where to put the script but i realized it wasnt suppose to be on the button itself, but on the scene node

CatLovesSoup
Автор

I'm just looking for help does anyone know what's wrong with my script

func _ready():
visible = false


func _process(delta):
pass

func _input(event):
if
visible = true

cam_move = false

var cam_move = true


func _on_quit_button_pressed():
get_tree().quit()


func
visible = false
cam_move = true


I Don't Know why but it ends up fighting to make cam_move true or false

ETok