Hello, I ran into a problem with my collision. At the beginning I was using two separate .x files for the same LEGO
brick the only difference was that one was turned for 90 degrees. But I want only to use one file. So I tried with "rotate object" and "yrotate object" to rotate my object and then "sc_updateobject". But the collision box doesn't turn 90 degrees. Also tried with built-in commands. The update command is into my loop because the bricks move on the Z axis, this works fine with update command.
//load player
LOAD OBJECT "cone2.x",1
COLOR OBJECT 1,RGB(0,200,150)
POSITION OBJECT 1,0,0,-100
sc_setupobject 1,0,0
//load bricks
LOAD OBJECT "2x6.x",2
YROTATE OBJECT 2,90
FIX OBJECT PIVOT 2
POSITION OBJECT 2,RND(8)*3.2+3.2,0,100
LOAD OBJECT "2x6down.x",3
POSITION OBJECT 3,RND(8)*-3.2-3.2,0,100
LOAD OBJECT "2x6.x",4
POSITION OBJECT 4,RND(10)*3.2+3.2,0,100
LOAD OBJECT "2x6.x",5
POSITION OBJECT 5,RND(10)*-3.2-3.2,0,100
LOAD OBJECT "2x10.x",6
POSITION OBJECT 6,0,0,100
FOR X=2 TO 6
sc_setupobject X,1,2
NEXT X
sc_updateobject 2
Inside loop
FOR X=1 TO 6
sc_updateobject X
NEXT X
FOR X=2 TO 6
if sc_objectcollision (1,X) = 1
lives=lives-1
object=X : Time=400
endif
NEXT X