I have a very simple project that creates an impulse on the rectangle towards a click/touch. The rectangle encounters a nonexistent barrier when two conditions are met.
1. The rectangle has Scroll-To behavior.
2. The layout is larger than the screen size.
The barrier is essentially a right wall near the middle of the screen and a floor near the middle of the screen that it cannot move past. I have only tested in Chrome.
If I remove the Scroll-To behavior it works fine. If the layout is the same as the screen size it also works fine.
I was hoping to have levels larger than the screen size and have the screen scroll with the player. Any one have an idea what the problem is?
Let me know if the link does not work.
You can't see ScrollTo behaviour on a blank background. Put in a tiled background for the moment so you can see the movement.
Develop games in your browser. Powerful, performant & highly capable.
Wow that was a silly mistake I made. Thanks, Blackhornet.