camera update
This commit is contained in:
parent
bc2be621c7
commit
fee3de7544
@ -47,12 +47,12 @@ func get_global_pos():
|
||||
#Move camera to position
|
||||
func MoveCamera(x, y):
|
||||
if x < int(screen_size.x / 2):
|
||||
print("passing")
|
||||
return
|
||||
if y < int(screen_size.y / 2):
|
||||
print("passing")
|
||||
return
|
||||
pass
|
||||
else:
|
||||
position.x = x
|
||||
if y < int(screen_size.y / 2):
|
||||
pass
|
||||
else:
|
||||
position.y = y
|
||||
|
||||
func _on_Tween_tween_completed(object, key):
|
||||
|
Loading…
Reference in New Issue
Block a user