Yes, you can create a collision box to an object, and it follows the given object and/or rotate with it.
I usually do it this way:
`create player
make object cube 1,2
`create collision box for player
make object collision box 1,-1,-1,-1,1,1,1,0
collision box object,X,Y,Z,X2,Y2,Z2,rotate_flag
object is the object that should be followed.
X,Y,Z,X2,Y2,Z2 determines the size of the collision box.
rotate_flag 0 means it won't rotate with the object, 1 says it will. I usually take 0 because you can use
get object collision X/Y/Z()
In the main loop:
`get player position
posx# = object position x(1)
posy# = object position y(1)
posz# = object position z(1)
`detect collision
if get object collision(1,0) > 0
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
endif
`update player
position object 1,posx#,posy#,posz#
hope this helps
Immunity and Annihalation makes Immunihalation...