you can try it :
if posy#, ~y# and ~z# are th coordinates an object :
if object collision(NumberOfTheObject,0)>0
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
position object NumberOfTheObject,posx#,posy#,posz#
endif
and to make a collision box around an object :
a = -(object size x(obj) / 2)
b = -(object size y(obj) / 2)
c = -(object size z(obj) / 2)
d = (object size x(obj) / 2)
e = (object size y(obj) / 2)
f = (object size z(obj) / 2)
make object collision box obj,a,b,c,d,e,f,0
note : the last number if 0, else the collision won't slide
and if you want a sliding collision for the camera, make a small invisible box with a collision system, and in every loop put it at the cam's coordinates, use the first code and position the camera on it
I'm following John, but I'm not john.
Lol, it is funnier in french
