How do I choose an object to be the camera

Get help using Construct 2

Post » Tue Jun 21, 2016 2:37 pm

In this game you need to move some items throughout the game in order to win.
They have an interesting aspect of how the camera works since there are many items moving at the same time.
How can keep the camera in the object closest to the center?
http://minecraft2d.org/play/minecraft-o ... ne-it.html
B
122
S
50
G
24
Posts: 401
Reputation: 22,462

Post » Tue Jun 21, 2016 4:01 pm

You need to give all the sprites you might want to be centered the "scroll to" behavior set to disabled at start.
Then you would test objects to see if they are in center using compare X and compare Y conditions in an event.
Whichever object is closest to center would have the action "enable scroll to" activated.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
68
S
17
G
8
Posts: 637
Reputation: 9,420


Return to How do I....?

Who is online

Users browsing this forum: MassimoF, Microbex and 23 guests