I have a level that's meant for auto scroll and I wanted to know how I achieve this.
Here's an example of what I mean:
Auto scroll part starts at 00:10
Hi. First of all disable all scrolling you already have if any.
Create event "Scroll to X" (in the System) and set it to "scrollx+0.01" (you can change the last parameter to control speed of scrolling)
Don't forget to add "Scroll to Y" as well and set it to "Player.Y" (so screen would follow him when he falls or jumps)
What if I don't want my player leaving the screen? How do I have that happen?
Same. Delete all scrolling, but now create event "Scroll to object" and set it to hero.
The screen doesn't move at all now, I can just move freely. Do you know how to fix that?
Don't think I follow what you mean then. If you don't want him to move freely then just return everything from my first reply.
What I mean is that the camera is regularly following the player now.
The problem I am having is that the player can move out of the scrolling area; off screen, while auto scroll is active.
Skip to 1:37
At 1:37, see how I get pushed onto the stone blocks when the screen touches me? That's what I want.
Develop games in your browser. Powerful, performant & highly capable.
player > behaviors > 'bound to layout'
I already have bound to layout.
Okay, I'll be back in a bit, lemme just make a video of what happens.