Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Wurzelpilz |
Position2D does not move with the camera, for whatever reason… I already tried with global_position, that’s not working either…does someone know why?
extends Camera2D
onready var north = $North
onready var east = $East
onready var south = $South
onready var west = $West
onready var player = get_parent().get_node("Player")
func _process(delta):
print(player.position.x," Position2D ", east.position.x, " Camera ", position.x)
if (player.position.x > east.position.x):
global_position = Vector2(256, 0)