camera update

This commit is contained in:
EljakimHerrewijnen 2020-09-23 10:50:07 +02:00
parent bc2be621c7
commit fee3de7544

View File

@ -47,12 +47,12 @@ func get_global_pos():
#Move camera to position #Move camera to position
func MoveCamera(x, y): func MoveCamera(x, y):
if x < int(screen_size.x / 2): if x < int(screen_size.x / 2):
print("passing") pass
return else:
if y < int(screen_size.y / 2):
print("passing")
return
position.x = x position.x = x
if y < int(screen_size.y / 2):
pass
else:
position.y = y position.y = y
func _on_Tween_tween_completed(object, key): func _on_Tween_tween_completed(object, key):