How do I restrict the Unbounded Scrolling?

  • I have the unbounded scrolling turned on to use the scroll to behavior but there are certain parts of the layout I don't want to be able to scroll over.

    Is there a way to do this?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could set an event for the object you are scrolling to so that when it reaches a certain X or Y value you disable the scroll to behavior, and of course re-enable the scroll to when it gets back in an acceptable range.

  • So say i have the scrolling set to player, i should set it so when he gets to a certain x or y disable the scrolling, then reactivate when back in acceptable values.

    I will give it a try now.

    Also is there a way to make the layout viewer window larger, like if you were designing a game which the level goes to the right, you would need to be able to see all the way to the end of the level to check and place objects, at the moment the layout viewer stops and wont go any further.

  • Nevermind about the layout viewer question im dumb i found the zoom lol

  • So, instead of disabling the scroll to behavior I ended up creating a second sprite that has its X value set to the player's X value as long as the player is in a certain range.

  • Oh wow that's awesome, never would of thought of doing it that way.

    Thanks for taking the time to do this!

  • Perhaps this will interest you too:

  • Taking a look now.

  • Mr. or Mrs. Shirokuma:

    With all due respect I address you in the most grateful way possible as this post and its subsequent examples ended my desperate search.

    The solution was no big deal, but I did not get to see it and you indirectly brought light to my terrible problem. I would have liked to write to you by MP

    but there was no way, you know that, I had been looking for a solution for several hours now and just before I gave up I posted this post.

    Thank you very much, I can not get the words of gratitude for your excellent work.

    With the due respect of the owner of the post I say goodbye.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)