Perhaps anyone here knows a better stair routine? Currently its:
`hit a set of stairs
if a$="ST"
`is player also colliding with a bar?
set object collision off i
j=object collision(player,0)
set object collision on i
`if so bar stops player
if j<>0
Position Object Player, oldX#,oldY#,oldZ#
else
`if not, go up stairs a little
Set Object Collision To Polygons i
if onObject(0)=0
onObject(0)=i
endif
Y#=HeightOnPlane#(onObject(0),Player)+18
Position Object Player, x#,y#,z#
endif
exitfunction 0
endif
www.mirrorman.cjb.net, the classic Commodore 64 and Amiga site.