Hello everyone,
Not sure if this is possible or will be complicated. Basically, I have a regular square sprite.
Nothing fancy, just a square colored blue for example.
What I want to do is spawn an object at a random spot on that square. So if the square is 16x16, I'd be able to pick (0, 16), (1, 3), (4, 8), etc... points on that sprite and spawn an object there. I don't need to pick a specific spot, just a random one that is within the surface area of the sprite.
Is that doable? If so, how?