..add Box1, Box02, Box03 and more..... in Family"Solid"...
.add boolean instanceVar for enemy"overlap"
Enemy Set Position :
X = random(ViewportLeft(0)..
Y = random(ViewportTop(0...
set "overlap" to True..
Enemy is overlapping "Solid"
Is " overlap"............................. set position to ..Solid-Solid/2
Enemy is NOT overplapping "Solid" ..set "overlap" to False..
maybe.. just maybe... this can work well for you
(evidently...can not test this..)