Help with "scroll to" camera moving outside layout

Discussion and feedback on Construct 2

Post » Tue Feb 07, 2012 12:04 pm

I'm using the "scroll to" function to make the camera follow my character in a platform game. The problem is that I want it to stop where the layout ends so that it doesn't show too much of the area outside of the layout.

How would one approach this problem? Is there a way to bind the "scroll too" view to the layout?

Thanks for your time, maybe I missed something but I couldn't find an answer by searching for it!
Posts: 4
Reputation: 458

Post » Tue Feb 07, 2012 3:56 pm

By default you can't scroll past the edges of the layout. Did you accidentally enable 'unbounded scrolling'?

Alternatively just get rid of the behavior and use the system Scroll actions, and use events to limit the scrolling.
Scirra Founder
Posts: 25,279
Reputation: 200,817

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest