Where to find help of basic use of the fonctions?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Syl

Hello!

Just askin as I ve done some startin tutos to create sprites and such, and I’m already confronted to a problem with the full screen. I’ve enabled it, disabled it, and yet it always occurs when runnin the project… And once played, I’m stuck on the fullscreen, havin to ctrl/alt/del to get away…

Any help?

So every time you run your game, it starts in fullscreen? Well, if it helps, you can stop the game from the editor by pressing F8.

Ertain | 2018-02-22 20:37

Ok, I’ll see to that F8. Cheers!

Syl | 2018-02-22 21:32

:bust_in_silhouette: Reply From: Enquest

you should make an exit statement. I add for example in my main node the following:

func _process(delta):
	if Input.is_key_pressed(16777217):
		get_tree().quit()

the key can also be KEY_ESCAPE for some reason I put the code in there.

If you then hit “esc” on your keyboard the process stops.

Thxs, I’ll try that.

Syl | 2018-02-23 16:24