Finding a sprite number
How would I find out if a sprite exists and then manipulate it? Like "is there a sprite at x/y and if there is then move it around".
The only way that comes to mind is shooting a missile at that x/y and then using &missile_target but that seems a bit messy, not to mention prone to bugs. Is there an easier way?
The only way that comes to mind is shooting a missile at that x/y and then using &missile_target but that seems a bit messy, not to mention prone to bugs. Is there an easier way?
You could give it a unique brain and use get_sprite_with_this_brain() to check for it.
Trouble is that it's a random sprite to start with and also keeps changing so I can't keep track of it with anything like that.
I would spawn an invisible missile with only one frame at that area as you suggested.
You could let a loop check all the brains you want to check for and compare their X/Y coordinates. Definitely a much more suitable solution than the missile