Hi all!
I have a long horizontal room, scrolling sideways (640x200), with walkable area from one end to the other. However, there is a door approx. in the middle. What should I do to make player stop in front of the door if its locked, and continue walking when its open? I want the player to unlock the door, open it, walk past it, and continue further into the scrolling room. I know that it would be much simpler with two separate rooms just connected with the door but it must be this way. How can I do this? Using regions somehow? Any ideas?
I have a long horizontal room, scrolling sideways (640x200), with walkable area from one end to the other. However, there is a door approx. in the middle. What should I do to make player stop in front of the door if its locked, and continue walking when its open? I want the player to unlock the door, open it, walk past it, and continue further into the scrolling room. I know that it would be much simpler with two separate rooms just connected with the door but it must be this way. How can I do this? Using regions somehow? Any ideas?