Game Development Community

Player is sticking to walls

by Bruno Grieco · in Torque Game Builder · 03/25/2006 (5:08 pm) · 1 replies

Ok Guys,

My game is essentially like any maze game ( pac-man ). I modeled the walls with invisible 2Dstaticsprites, set the collision to FULL and the response to CLAMP.

This is keeping me awake :

Sometimes, when coliding with wall ( say left wall ), the player gets sticked to it. He may move up or down, but not right. I can only move right if I move (up or down) past the wall. The ASCII art bellow shows a case :

+--------------
     | 
     |P                
     |    +---------+
     |    |         |
     |    +---------+
     |      
-----+

In the example, the player (P) gets stuck on the left wall and cannot proceed right, even though he could

The player's collision polygon is also a box ( but not the full sprite )

TIA

#1
03/27/2006 (1:59 am)
Although this isn't going to help you immediately, there have been several reports of "odd" behaviour from the "physics" (more specifically, the collision-detection) that I need to nail-down.

A problem similar to this has been reported and it's starting to look like it's the same problem.

- Melv.