Ok so I got sorted on arranging the crates randomly and now ive got that under my belt. my next enquiry is that when I go to fiddle with the OBJECT COLLISION IF statements its saying that the object at line 177 (i) doesn't exist? anyone shed any light? and also how can i stop overlapping?
REM LEVEL DECORATIONS (CRATE)
LOAD IMAGE "WoodenCrate.bmp",3
FOR i = 20 TO 40
MAKE OBJECT BOX i,75,75,75
TEXTURE OBJECT i,3
POSITION OBJECT i,RND(750)-RND(750),40,RND(750)-RND(750)
set object collision on i
NEXT i
REM IF THE PLAYER HITS THE WALL/CRATE
IF (OBJECT COLLISION(2,4) > 0) OR (OBJECT COLLISION(2,i) > 0) <(line177)
Dec XPos#,Get Object Collision X()
Dec ZPos#,Get Object Collision Z()
ENDIF
POSITION OBJECT 2,XPos#,YPos#,ZPos#
http://dai.moddb.com