`DETECCION DE COLISIONES DESLIZANTES
`-----------------------------------
if object collision(jugad,0)>0:gosub zzol
if object collision(jugad,0)=0:z#=oldz#
endif
endif
if object collision(jugad,0)>0:gosub xxol
if object collision(jugad,0)=0:x#=oldx#
endif
endif
if object collision(jugad,0)>0
x#=oldx#:z#=oldz#
endif
return
`------------------------------------
xxol:
POSITION OBJECT jugad,oldx#,y#-gravedad#,z#
return
zzol:
POSITION OBJECT jugad,x#,y#-gravedad#,oldz#
return
This bit of your code, from what i can gather, governs your collisions and the ramp. In the "if object collision(jugad,0)" bit, im taking it that the 0 is the ramp? So then, when the collision is positive (greater than 1) it does the gossub for both xxol and zzol and then sets x# and z# as oldx# and oldz# respectively.
What exactly does that do? I get that its testing the collision, but what do the gosubs do?