![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | minemaster552 |
So i’m making a pretty regular game and sometimes using a tutorial and adding my own little additions using things i learned but i think i didn’t learn enough.
So i’m trying to add a feature where the Camera "snaps towards the enemy center for easier control but my script doesn’t seem to work
func _process(_delta):
if is_colliding():
var collider = get_collider()
if collider.is_in_group("enemies"):
print("Ping! Looked at" + collider)
$"..".look_at(get_node(collider).translation)
I will be honest that i seriously don’t know what could be wrong, although the print doesn’t actually print so that could be where the problem is