Lets say I want to randomly position FIVE objects on any one of SIX designated x,y points on a level screen. What is the easiest way to do this?
I normally use 'swap position with another object' which works well on active objects but does not seem to work properly with 'alpha objects'. Also, if I do it this way, objects can never position themselves on the vacant x,y point.
n/a
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
4th February, 2005 at 19:42:18 -
You could have 5 invisible objects(Invisibleobject) and then have your five objects that you want to place(placeme):
*Invisibleobject.Is not overlapping 'placeme' > Placeme.x = invisibleobject.x
+Pick an Invisible object at random > Placeme.y = invisibleobject.y