sandbox
Last change
on this file since 0249beb was f7b09c8, checked in by Kevin Chapman <victory2b@…>, 4 years ago |
First Draft of world test with working movement and loading screen.
|
-
Property mode
set to
100644
|
File size:
536 bytes
|
Line | |
---|
1 | extends Control
|
---|
2 |
|
---|
3 |
|
---|
4 | # Declare member variables here. Examples:
|
---|
5 | # var a = 2
|
---|
6 | # var b = "text"
|
---|
7 |
|
---|
8 |
|
---|
9 | # Called when the node enters the scene tree for the first time.
|
---|
10 | func _on_pause_button_pressed():
|
---|
11 | get_tree().paused = true
|
---|
12 | $pause_popup.show()
|
---|
13 | func _on_pause_popup_close_pressed():
|
---|
14 | $pause_popup.hide()
|
---|
15 | if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE:
|
---|
16 | Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
---|
17 | get_tree().paused = false
|
---|
18 |
|
---|
19 | # Called every frame. 'delta' is the elapsed time since the previous frame.
|
---|
20 | #func _process(delta):
|
---|
21 | # pass
|
---|
Note:
See
TracBrowser
for help on using the repository browser.