Hi there!
so I want to spawn something where I press on the screen (touch screen game) but when I'm pressing in the position area of around 1500 - 1000 but it spawns in around 350 - 557 give or take a few
code -
func _unhandled_input(event):
if event is InputEventScreenTouch and event.is_pressed():
print(event.position)
var new_instance = PopUp.instance()
self.add_child(new_instance)
new_instance.position = event.position
print(new_instance.position)
when I print the event.position
it does say around that 355 to 500 with some offset of where my press was
I've had some problems like this before and I set the scale of the nodes to 1-1 but they all already were so I'm at a loss any ideas?
Big thanks ahead of time!