TELLES0808 wrote:touch 0 end - create objects on [square.X + random(-square.width/2, square.width/2), square.Y + random(-square.height/2, square.height/2)];
it's an approach of a square.
If I remember my last solution for it, I'll come here and share.
If your radius is the same circle width/2, use:
= Touch 0 end
-> Create objects on [circle.X + cos(random(360) * circle.width/2), circle.Y + sin(random(360) * circle.width/2)];
Every 0,1 seconds:
Create object on (circle.X + cos(random(360) * circle.width/2), circle.Y + sin(random(360) * circle.width/2)];
My wish is that the objects are all created at a random place, within the circle, not overlapping the outside of this circle.
This did not work for me.
Do you have another suggestion?
I think I am looking for a way to spawn objects at an x distance pixels from the middle of a circle.
If I worked with a square, this would have been no problem.
Circles provide more complexity.
hundredfold wrote:Hi @Shadowdawnz - it's no problem replying to old posts because the discussion is often useful to someone else who finds the threads much later on.
Users browsing this forum: No registered users and 2 guests