I'm working on a little platformer project similar to Mario Bros. and I can't seem to get boxes to bounce correctly when I jump into them.
Heres what I'm using to check the collision above my character:
TC=SC_raycast(0,GCNewX#,GCNewY#,GCNewZ#,GCOLDX#,GCNewY#+25,GCOLDZ#,Player)
And heres the code I'm using for the hopping:
`The blocks I want to move are between 99 and 200
If TC > 99 and TC < 200 : Hop=1 : endif
If hop=1
move object up tc,mag
mag=mag-1
endif
If mag<-5:Hop=0:Hopping=0:Mag=5:endif
Now I realize my problem lies within the fact that variable TC is constantly changing, making it impossible to use TC for the Object Id. So my question is how can I save the value of the object that I'm colliding with so that I can keep the block moving?
Thanks Everyone,
Radi