Collision with the ground?

Blitz3D Forums/Blitz3D Programming/Collision with the ground?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I believe this is a 'common' problem, and I'm not sure if it has been solved properly. Maybe in the archives, as John said ? In a lot of examples, you can climb up a wall as if it was the ground.

Maybe you could setup separate collisions ground/walls:
player->wall (ie. type 1 <-> type 2)
player->ground (ie. type 1 <-> type 3)

Then, you could use EntityCollided(player, 2). That would check if the object 'player' has collided with an object with a certain collision type, in this case type 2.
EntityType player, 1
EntityType ground, 2
EntityType walls, 3

Collisions 1, 2, 2, 3
Collisions 1, 3, 2, 3

repeat

  if EntityCollided(player, 2) then
    ...player has collided with floor
  end if

forever