I was wondering if any of you could help me with a specific Gamemaker question. Am using Gamemaker Studio.
I have an object (oSpecialSolid) which rotates and moves across my level. At random intervals, another object (oEmitter, an animated spark or flash of smoke) spawns somewhere within the x and y of oSpecialSolid, give or take 45px.
Unfortunately, oSpecialSolid has some transparent areas (the sprite is not perfectly rectangular, and has empty space at either side) where I would not like the oEmitter to spawn. However, as the object spins, I cannot tell if the x and y values that I am telling it to spawn in will be transparent or not in that moment. I would also like the oEmitter to spawn anywhere on the oSpecialSolid object,not just in a 45 x 45px box in its centre.
What I am looking for is a method of telling oEmitter to only spawn within the collision box of oSpecialSolid. Is there a way to do this? I am using the precise settings for collision.