Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Sprowk | |
Old Version | Published before Godot 3 was released. |
I have a character (platformer) which moves with the camera. When i open box and drag item from it. I want to move the node to mouse pos. How to do this with moved camera?
func _input(ev):
if ev.type == InputEvent.MOUSE_MOTION:
self.set_pos(ev.pos+some_pos)
What should some_pos be in this case? Or as heading says is there any function like that?