Hi to all,
I am building a little labyrinth-like game, based on the old game "Crystals of Zong" if someone of you remember the game.
The labyrinth is composed by 9 rooms in a grid of 3x3 and in the middle of each rooms there is a little space with a special Collectable Item between two closed doors, the player need to search for the correct key to open the door and collect the items.
The room center is somthing like this:
when the player has the correct key the doors become flashing blue and the player can pass, the walls are setted as background obstacles.
Now my problem, the player is moved with the standard eight directions control of CF2.5, I have no problem with the normal collision with the walls and the closed doors. When the player has the correct key it can pass through the corresponding opened door without problems using the left and right arrows, but if it is overlapping a opened door and I press the down arrow the player object "enters" a little bit into the wall and is blocked forever. The problem is not verified with the up arrow.
The collisions code I used is very simple
and I tryed different ways to solve the problem, such as change the events order or adding other overlapping controls, but without any result.
Someone can help me in this two points:
1) why is this thing happening
2) how can solve the problem
Thanks to all.