How do I restrict the Unbounded Scrolling?

Get help using Construct 2

Post » Tue Apr 01, 2014 1:44 am

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?
B
5
S
2
Posts: 105
Reputation: 837

Post » Tue Apr 01, 2014 1:49 am

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.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Tue Apr 01, 2014 2:45 am

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.
B
5
S
2
Posts: 105
Reputation: 837

Post » Tue Apr 01, 2014 3:08 am

Nevermind about the layout viewer question im dumb i found the zoom lol
B
5
S
2
Posts: 105
Reputation: 837

Post » Tue Apr 01, 2014 3:30 am

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.
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Tue Apr 01, 2014 2:33 pm

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

Thanks for taking the time to do this!
B
5
S
2
Posts: 105
Reputation: 837

Post » Tue Apr 01, 2014 3:11 pm

Perhaps this will interest you too:
viewtopic.php?f=147&t=99699
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Tue Apr 01, 2014 3:33 pm

Taking a look now. :)
B
5
S
2
Posts: 105
Reputation: 837

Post » Mon Oct 09, 2017 5:38 am

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.
B
6
S
1
Posts: 1
Reputation: 357


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests