How do I Scroll-to two different sprites (disabling one)

Get help using Construct 2

Post » Fri Feb 28, 2014 10:17 am

Hi all,

I'm working on a plattform game and I'm using the scroll-to behaviour in my object/player. Everything works fine, the view is centered in my object/player.
When I have 2 objects/players with scroll behaviour enabled the view is centered at the midpoint of the two objects according to the scroll-to behaviour documentation.

I'd like to scroll to one player and then to another player in different parts of the game but if I dissable scrollto behaviour in one of the players It justs keeps centering the view at the mid point of the 2 objects/players.

Is it possible to do what I want?

Thanks in advance,
B
4
Posts: 16
Reputation: 232

Post » Fri Feb 28, 2014 10:43 am

You are not limited to the "Scroll to.." behaviour.

There is a scroll-to system action that can be fed with anything you come up with in a formula, for example.
B
78
S
28
G
32
Posts: 481
Reputation: 19,788

Post » Fri Feb 28, 2014 11:10 am

I made you a little .capx to show an example:

http://www.doomsday-machine.com/stuff/S ... tions.capx

The two squares are the scroll-targets, and it flips between them every few seconds.
B
78
S
28
G
32
Posts: 481
Reputation: 19,788

Post » Fri Feb 28, 2014 3:34 pm

Thanks a lot Eisenhans!!! that definetly worked for me and saved mi life!!
B
4
Posts: 16
Reputation: 232


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests