how are you getting stuck with the collision?
is it sliding ****edit***(spelling lessons needed) collision?
try this
do
` forward
if inkey$()="w"
oldposx=object position x(object number)
newposx=newxvalue(oldposx,object angle y(object number),speed)
` wall is whatever number or thing u collide with.
if newx>wall then newposx=oldposx
oldposz=object position z(object number)
newposz=newzvalue(oldposz,object angle y(object number),speed)
if newz>wall then newposz=oldposz
endif
` backward
if inkey$()="s"
oldposx=object position x(object number)
newposx=newxvalue(oldposx,object angle y(object number),-speed)
if newx<wall then newposx=oldposx
oldposz=object position z(object number)
newposz=newzvalue(oldposz,object angle y(object number),-speed)
if newz<wall then newposz=oldposz
endif
sync
loop
this would cause sliding collision.
then if your x value hits then it never goes thru.
and same for ur z value.
hope this helps.
Why are the forgotten always remembered? But no-one remembers me?!