I create a puzzle game... a simple old puzzle game.
here's the situation (I hope my explanation is not too long):
I have 10 rooms, the rooms name are: roroom11..roroom15 and roroom21..roroom25
I have a character obChar.
every level have multiple rooms.
So roroom11-roroom15 is act as level1, roroom21-roroom25 act as level2.
obChar will start in the first room for every level and finish on the last room to advanced the next level.
on every level, obChar must finish 1 room then obChar can go to other room. ex. obChar must solved puzzle on roroom11 then the door is open to go to roroom12. until it reached roroom15, then the door will lead to level2.
on every room, there are several red and green doors, one red/green keyhole and of course red/green key. Also some power ups. a key is use on the same color keyhole to open all same color doors and the same room. ex. if green key is use in roroom11, then every green doors in roroom11 will open but not other green doors in the other room.
if obChar hit a trap in one room, all the rooms in that level will be reset and obChar will be back to first room in that level. ex. if obChar hit a trap in roroom13 then roroom11-roroom13 will be reset like never been visit before, obChar will be back to roroom11 and it must start all the puzzle all over again. the energy will be reset to default, but the score will still the sam as last before die.
if obChar go from roroom11 to roroom12, then every power ups or key obChar get in previous room will be carry on to he next room. Also the energy obChar have will still the same in the next room. But if obChar go to the next level, all the items will be gone and the energy will be reset to the default setting.
ok, here's what I have create so far and need advice. Also the solution.
I create one long room that hold 5 rooms (or more in the advanced level). So roroom11 to roroom15 is side by side in one long room (3500x420).
Create and put every wall, door, key, power ups, trap, and of course 1 obChar.
I set the room view big enough just to see per room (700x420). So, if obChar can cross the room view border, it means obChar can go to the next room. The room view will be change position to focus on the next room.
Problem: if I use key in the first room to open the door, all the doors in other room it will also be open. no matter if my room view still focus in first room. I guess is because all the door object is still in one big long room.
I create every rooms separetly, only group it by folder. So I put roroom11-roroom15 into level1 folder.
Create and put every wall, door, key, power ups, trap, and of course 1 obChar ON EVERY ROOM.
Problem: if I die in roroom13, I can't go back to roroom11 and reset all the room like default. More of that, I can't bring all the items from previous room the the next room and the energy can not carry on to the the next room.
That's all my explanation. I really need advice what plan I should choose (the easier and simple one) and how to solve the problem I have.
I, personally, choose Plan A but I can't figure out how to solve the problem.
Note... I am using GML and doesn't have any DnD at all.
Edited by stevanooz, 17 June 2011 - 12:42 PM.