This site requires JavaScript, please enable it in your browser!
Greenfoot back
swendleys
swendleys wrote ...

2014/1/16

Make object appear randomly but don't thouch eachother

swendleys swendleys

2014/1/16

#
Im stuck I want objects to randomly appear but I don't them to touch eachother they need to have space between them
danpost danpost

2014/1/16

#
I do not have time to explain in detail. But you can use a 'while' loop in the 'addedToWorld' method to check (using 'getObjectsInRange) and relocate the actor.
swendleys swendleys

2014/1/16

#
thank you for your answer but i'm a just a beginner so it is a bit hard can you help me out later if you have time? thank you very much
swendleys swendleys

2014/1/20

#
Can somebody please help me I want to create crates in my world randomly but I don't want them to touch each other in the world
You need to login to post a reply.