My problem is that the scroll to behavior only triggers when the sprite I control goes out of the layout. Please help me fix this problem
Help us to help you, by providing the file or some more information. Do you mean viewport? If so, that's how it works. If you're saying scroll to behaviour only works when leaving the layout, I don't see how that can be the case.
Yeah lemme get to a PC and I will somehow send the file
Develop games in your browser. Powerful, performant & highly capable.
here you go here is the file https://drive.google.com/file/d/1QTNv0ujxMk20n1k0bM8WzroojG8nkVfK/view?usp=sharing
You've put it on a background image, Scroll To Behaviour is usually put on the player so it follows them like a camera. You can't have it on both, disable the background one.
ok this looks good, thank you