Rather than use Simon's rather complicated code, I have been trying to implement the viewport mode by a simple function to either turn the mode on or off in horizontal mode and then including a status check of a separate object, so that if the status is 1 then the vertical mode is also turned on.
I have an odd situation that I can't explain. Imagine three rooms in a row. Rm 1 has the horizontal vewport on. Rm2 has the horizontal and vertical viewport turned off. Rm 3 has the horizontal and vertical viewport on.
Moving from rm 1 to rm 2 and back again is fine. Moving from rm 2 to rm 3 and back again is fine. But going back to rm 1 from rm 2 after having been in rm 3 the room's y axis is offset by 24 pixels so that the bottom of the upper room is showing as part of the 'current' room. This oddity then remains the default for moving to any other room with the horizontal viewport on - even though it switches back to the proper view when in any room with viewport mode turned off, but switches back to the odd view when entering another room with viewport mode on (either horizontal only or horizontal and vertical mode on).
I have no idea why on earth this is happening. Can anyone point me towards somewhere to try and fix this?
I have an odd situation that I can't explain. Imagine three rooms in a row. Rm 1 has the horizontal vewport on. Rm2 has the horizontal and vertical viewport turned off. Rm 3 has the horizontal and vertical viewport on.
Moving from rm 1 to rm 2 and back again is fine. Moving from rm 2 to rm 3 and back again is fine. But going back to rm 1 from rm 2 after having been in rm 3 the room's y axis is offset by 24 pixels so that the bottom of the upper room is showing as part of the 'current' room. This oddity then remains the default for moving to any other room with the horizontal viewport on - even though it switches back to the proper view when in any room with viewport mode turned off, but switches back to the odd view when entering another room with viewport mode on (either horizontal only or horizontal and vertical mode on).
I have no idea why on earth this is happening. Can anyone point me towards somewhere to try and fix this?