Collision Problems

Blitz3D Forums/Blitz3D Beginners Area/Collision Problems

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.

im trying to get it so where the player can't walk through solid objects (walls,trees,fence.. etc) i've declared the objects as an entity type, (PROPS) with the code:

EntityType character,PLAYER

and :

EntityType foodshop,PROPS

etc...

then i do collisions like:

Collisions PLAYER,PROPS,2,1

which makes teh character not be able to pass through the objects and walls. which works fine except that if the character keeps moving forward into a building for a little bit, it takes the player awhile to get back out, and when he does, it warps the character quite a ways from the building... OR he gets completely stuck there... is there a way to make it so where the character can't run through the building, AND it won't have these problems?