How to determine if the character can jump or not

Blitz3D Forums/Blitz3D Beginners Area/How to determine if the character can jump or not

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

sphere = createsphere()

If PickedEntity() = sphere then
   ; smae entity
End if


Well, as for the wall jump, i'd only test for a wall jump, if the character is in the air, and has a forward speed.

You best to use the collision system for this i reckon.

If EntityCollided() = wall then
   If jumping = 1
      ;enable wall jump
   End if
End if


I reckon that would be a simplier way to do this. I've never tried a wall jump like that in code though, but i reckon that's the way it should work.