Hi all,
Please, can you help me with the following problem?
I have a layout which is 3072 pixels wide and 1920 pixels high. My viewport is 768 pixels wide and 480 pixels high.
I placed my viewport in the left-bottom part of the screen with the following line:
System --> On start of layout
Action --> System: Scroll to (cintStartPosX_Laby01, cintStartPosY_Laby01)
This moves the viewport to the location bottom-left.
Now on the right I have an opening in my layout and when the player goes through that opening, the next room on the right has to move into the viewport.
So I have the following event/action:
sprPlayer --> Is out side layout
Action --> -> System: Scroll to (cintStartPosX_Laby01-768, cintStartPosY_Laby01)
cintStartPosX_Lab01 constant value is 0
cintStartPosY_Lab01 constant value is 1920
So I assume that this event will move the viewport to the other room on the right.
However, nothing is happening.
I searched but cannot find what I am looking for.
Please, can you tell me how I can detect that my player is outside that opening and How can I move the viewport in a way that the first room slide to the left until the new room is fully in position?
Thank you so much for your help, which I do appreciate.
Chris