question about collisions

Blitz3D Forums/Blitz3D Beginners Area/question about collisions

Instead of this ..

If EntityCollided(camera,type_scenery)
	PGrav = 0.0
	jumped = 0
EndIf


Do something like this ...

for c = 1 to countcollisions( camera )
 if collisionny( camera , c ) > 0    
   PGrav = 0
   Jumped = 0
 endif
next


This basically means that gravity and jump will only be reset if you collide with something below you.

Hope this helps.
Stevie