summaryrefslogtreecommitdiff
path: root/Scenes/Maps/World3.gd
blob: d9e8399aa93c27b09141b87168a7b985d9b2b7a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
extends "res://Scenes/Maps/Map.gd"

func _ready():
	super._ready()
	
	get_node("Areas/Alpha/Objects/Sign").connect("interacted", func():
		Utilities.dialog("Alpha/alpha-sign")
	)
	
	get_node("Areas/AlphaBeta06/Objects/Sign").connect("interacted", func():
		Utilities.dialog("Alpha/alpha-sign")
	)
	
	get_node("Areas/Beta01/Objects/Button").connect("pressed", func():
		get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood"))
	)
	#get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood"))
	get_node("Areas/Beta01/Objects/Button2").connect("pressed", func():
		get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood2"))
	)
	#get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood2"))
	
	get_node("Areas/Beta02/Objects/Button").connect("pressed", func():
		get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood"))
	)
	#get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood"))
	get_node("Areas/Beta02/Objects/Button2").connect("pressed", func():
		get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood2"))
	)
	#get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood2"))
	
	get_node("Areas/Beta01/Transitions/Height1").body_entered.connect(func(body):
		body.z_index = 3
		if body is Player:
			print(body.z_index)
	)
	get_node("Areas/Beta01/Transitions/Height1").body_exited.connect(func(body):
		body.z_index = 0
		if body is Player:
			print(body.z_index)
	)
	get_node("Areas/Beta01/Transitions/Height2").body_entered.connect(func(body):
		body.z_index = 5
		if body is Player:
			print(body.z_index)
	)
	get_node("Areas/Beta01/Transitions/Height2").body_exited.connect(func(body):
		body.z_index = 3
		if body is Player:
			print(body.z_index)
	)
	get_node("Areas/Beta02/Transitions/Height1").body_entered.connect(func(body):
		body.z_index = 3
		if body is Player:
			print(body.z_index)
	)
	get_node("Areas/Beta02/Transitions/Height1").body_exited.connect(func(body):
		body.z_index = 0
		if body is Player:
			print(body.z_index)
	)