Hey guys,
i now searched the whole forum up and down and found nothing suitable for my problem.
Im doing a little top-down-game with some predefined "rooms" which i created in a graphics-program. Each of the rooms has an entrance and an exit. Now at the beginning of my game a dungeon is randomly generated: The game picks a few of the predefined rooms and arranges them together, so there is a small corridor between two adjacent rooms.
Everything is working quite fine, but my problem is the collision of the player with the walls of the rooms.
Due to the fact, that there are two doors in each room, i can?t arrange the collision-polygon properly: i want the player to collide with the walls of each room, but he should be able to use the entrance and exit and the corridors between two rooms. That means the collision-polygon must be open at two positionsin each room. How can i do this?
Is it possible to add a second collision-polygon to an object or how can i achieve this kind of collision?
Thank you.
Greetings!