summaryrefslogtreecommitdiff
path: root/scripts/incubator.gd
diff options
context:
space:
mode:
authorJ08nY2017-04-22 20:46:58 +0200
committerJ08nY2017-04-22 20:46:58 +0200
commitdd857ee3bb9fb07c260f51ab4669944d48324eea (patch)
tree153f567aae08bdee00ff5e09ec429412b47aa7df /scripts/incubator.gd
parent3ed5257c222f34b591b744ef6418b5c1165be25f (diff)
downloadld38-dd857ee3bb9fb07c260f51ab4669944d48324eea.tar.gz
ld38-dd857ee3bb9fb07c260f51ab4669944d48324eea.tar.zst
ld38-dd857ee3bb9fb07c260f51ab4669944d48324eea.zip
Diffstat (limited to 'scripts/incubator.gd')
-rw-r--r--scripts/incubator.gd7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/incubator.gd b/scripts/incubator.gd
index 11f8d5b..993f76a 100644
--- a/scripts/incubator.gd
+++ b/scripts/incubator.gd
@@ -15,12 +15,9 @@ func set_world(x, y, world):
world.set_translation(pos.global_transform.origin)
func push_world(world):
- print("pushing")
for x in range(4):
for y in range(2):
- print("h")
if self.worlds[x][y] == null:
- print("set")
set_world(x, y, world)
return
@@ -31,8 +28,10 @@ func _on_body_input_event( camera, event, click_pos, click_normal, shape_idx ):
if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_LEFT:
print("body")
var cam = get_tree().get_root().get_camera()
- cam.select(self)
+ cam.select(self, get_node("point"))
func _on_panel_input_event( camera, event, click_pos, click_normal, shape_idx ):
if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_LEFT:
print("panel")
+ var cam = get_tree().get_root().get_camera()
+ cam.select(self, get_node("point"))