Camera follow 2 or more players

Get help using Construct 2

Post » Thu May 16, 2013 4:01 pm

You can add the Scroll To behavior to 2 or more objects and it scrolls to the mid-point of all the objects. I just checked and it definitely works.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Thu May 16, 2013 5:37 pm

@arcgen - Thanks, man - let me know if you have any problems with it.

@Ashley - That takes care of scrolling, but it doesn't zoom the camera to keep all of the objects on the screen, which is one of the things Magicam handles.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Thu May 16, 2013 7:53 pm

did u use the scroll to behaviors or the scroll to function
and another problem you might also be having is u don't have unbounded scrolling and one of them is going out side the layout
also to zoom out u use the set layer scale or layout scale and just slightly decrease it if both or either players are outside the box
then have a inner box and i they are both in it to slightly zoom in until the max amount for zooming in
to tie the two players to together you give one of them the pin behavior and pinit to the other player rope style in the eventssosensible2013-05-16 19:57:57
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Fri May 17, 2013 1:40 am

Last edited by Yann on Sun Sep 14, 2014 7:17 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue May 21, 2013 3:32 pm

Sorry my delay guys. I had a couple of busy days in a row.

@Ashley - It works, and I made some tests to have a auto-scroll on rail camera based on triggers. The zoom is the only issue right now. I know how to scale the layout, but how can I make a transition between the zoom levels using just the engine without plugin?

@linkman2004 - Your plugin is great and it fits in almost everything that I need. I still have some doubts about some issues and I sent you a private message about it. Thanks!

@sosensible - I used the behavior. To resolve the layout edge problem I made a invisible collision on a fixed layer that doesn't allow the players to leave the layout when they are too far from each other. Isn't the best solution, especially because you have to use it on the max Zoom Out to work well.
B
13
S
2
Posts: 104
Reputation: 1,336

Post » Tue May 21, 2013 4:09 pm

try having the layout zoom out according tot he distance they are apart
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Tue May 21, 2013 4:21 pm

@Yann - I tried to open your project, but I'm using the C2 on Steam, Release 126 - 64 bit, but your version is running on the Release 130. I'm afraid I will have to wait until have the Steam Release 130 to see your project.
B
13
S
2
Posts: 104
Reputation: 1,336

Post » Tue May 21, 2013 4:22 pm

@sosensible - That is what I did. But I'm sure there will be a better way to do it.
B
13
S
2
Posts: 104
Reputation: 1,336

Post » Wed May 22, 2013 4:00 am

@arcgen
you can download release 130 through steam by going
Library > All Software
Right click on Construct 2 > Properties > Betas > Select Beta- Construct 2 beta updates and close
Steam should automagically download the last beta (:
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed May 22, 2013 10:01 am

@Yann - Thanks! It's working :) Let me see your project.
B
13
S
2
Posts: 104
Reputation: 1,336

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 16 guests