Hopefully this is the correct area to post this. But I was customizing a plugin and need to base it on the enemies position on the screen and it seems like its using the location of the wrong enemy. I'm testing this in a fresh game and still see the issue. I've attached a picture.
The Bat is enemy index 0 but it is showing the x coordinate of the slime (enemy index 1) and vice versa. Is this a bug or am I just not understanding something. Any help would be greatly appreciated.
Edit: I noticed that this seems to occur when the two enemies share a relatively close y coordinate.
The Bat is enemy index 0 but it is showing the x coordinate of the slime (enemy index 1) and vice versa. Is this a bug or am I just not understanding something. Any help would be greatly appreciated.
Edit: I noticed that this seems to occur when the two enemies share a relatively close y coordinate.