maordany easy try this demo
I'm afraid I did not understand what you did or I did not explain myself right.
1. I have a map with a lot of solid objects.
2. I need to create enemies in a random place on the map (But not on a solid object).
i use this code on Set Position :
X = random(ViewportLeft(0)+Box.Width/2, ViewportRight(0)-Box.Width/2)
Y = random(ViewportTop(0)+Box.Height/2, ViewportBottom(0)-Box.Height/2)
the "Box" is the solid object and it works well but my problem now is, i have many solid objects with different names and I can not use the previous code because he knows how to work only with object called "Box". and I have to work with an objects called Box01, Box02, Box03 and more.....