I have a situation in a pixi js game where a mouse click picks a location for a sprite to move on a tiled platform and then the platform moves behind the sprite until it’s on the selected tile.
The current logic is on mouseover, I save which tile is selected and on click, I move the platform to the selected tile. This works when you’re moving the pointer over a tile, but when the platform moves a new clickable tile behind the pointer a mouseover is not fired. Is there a way I can get mouseover to fire when an interactive element moves behind the pointer instead of just when the pointer moves over an interactive element?
An alternative might be to check the coordinates of the pointer after the platform moves and then set the clickable tile, but I’m hoping there’s a simpler way to do it as I don’t have an easy way at this point to make a point on the screen to a tile.
I’m using pixi js 8.1.1.
1