Multple 'Scroll to' Layout Scaling

Get help using Construct 2

Post » Sun Nov 10, 2013 6:15 am

I did some looking around but I couldn't find a post within Scirra regarding scaling while using the scroll to behavior on multiple objects.

I am looking to have the layout scale down when my scroll objects get far away from each other. This would allow me to keep both objects on screen even when they are far away from each other.

Any help on this topic would be appreciated.
B
10
S
3
Posts: 46
Reputation: 820

Post » Sun Nov 10, 2013 6:37 am

The problem was far more simple then I had first thought.

On every tick check for the furthest scroll to object.
If it is over half the width of the screen minus padding assign it to layout scale.

This is a very basic version of what I was looking to achieve, but I wanted to upload it in its basic form so that it can help others with a similar need.


Inversion2013-11-10 06:38:52
B
10
S
3
Posts: 46
Reputation: 820


Return to How do I....?

Who is online

Users browsing this forum: sean080 and 23 guests