Solved Change the point at which the screen scrolls without a script

Question that is answered or resolved.

Steven1985

Active member
Hi guys, in games the character starts scrolling the background from left to right or right to left more or less halfway across the screen. Instead of halfway across the screen could it be sooner? Or the character does not move but the screen scrolls being able to customise the speed so that I go faster to my destination otherwise I lose life. Is all this possible without scripts? Thank you in advance.
 
Solution
Found. In the manual there is the parameter called cameraoffset that allows you to scroll the background when the character moves forward a few pixels, which by default the camera scrolls when the character is more or less halfway across the screen. Depending on the number you put in, the camera scrolls when the character reaches a certain position on the screen, which can be before the middle of the screen or beyond the middle of the screen. So the bigger the number the fewer steps the character takes before the camera scrolls and vice versa. I hope I have made myself clear. I made a video as demonstration.


Whereas if you want the camera to scroll automatically without the character moving, the parameter to use is...
I have an idea in mind about non-script workaround. However I can't guarantee the stability of this trick in some levels, and it might be worse in multiplayer.
 
Found. In the manual there is the parameter called cameraoffset that allows you to scroll the background when the character moves forward a few pixels, which by default the camera scrolls when the character is more or less halfway across the screen. Depending on the number you put in, the camera scrolls when the character reaches a certain position on the screen, which can be before the middle of the screen or beyond the middle of the screen. So the bigger the number the fewer steps the character takes before the camera scrolls and vice versa. I hope I have made myself clear. I made a video as demonstration.


Whereas if you want the camera to scroll automatically without the character moving, the parameter to use is scrollspeed.
 
Solution
Back
Top Bottom