Hi Everyone!
I’m using a DOM object in my game as a clickable button that appears above the player character’s head. The button can follow the player around, so I’ve set the position of the button to the player’s position in the scene’s update
method.
It works fine, but I’ve noticed there’s a slight lag in the update - the DOM button seems to be a bit behind the player’s position by a few frames.
Does anyone have any idea why this might be happening?