It is a 2D game. The popup is not animated, and I make it appear when the player is within a certain distance from a sprite, full code here on the popup:
extends Popup
var player
var Fish
func _ready():
Fish = get_tree().root.get_node("/root/World/Fish")
player = get_tree().root.get_node("/root/World/player")
func _process(delta):
var player_relative_position = player.position - Fish.position
if player_relative_position.length() <= 200 && Input.is_action_just_pressed("Talk"):
popup()
So, pretty simple. I've tried putting it under a control node, but same result no matter where I position everything in the editor: it doesn't want to go past (0,0) to anywhere negative when I run the game.
I'm assuming I'll just have to position it in code? Though it still wouldn't make sense to me...