Camera Following Main Sprite

Get help using Construct 2

Post » Tue Mar 20, 2012 5:57 pm

Hey guys,
I'm very new to Construct and how it all works here. Basically what I need to know is how to make the players view to follow the main character, so if he goes beyond boundaries the camera follows him.
Thanks
-Matt
B
12
S
1
Posts: 18
Reputation: 824

Post » Tue Mar 20, 2012 6:17 pm

Hey Matt,
You might want to check the [How do I]Frequently asked questions Camera/Scrolling section or try looking at the ghost shooter example in the examples folder that comes with Construct 2. FAQ

If you mean the camera is stationary and when the player hit the edge of the screen it follows the player. You could most likely modify the Edge scrolling tutorial to get what you need.
Edge Scrolling
Hope this helpsshadowedsol2012-03-20 18:19:16
B
9
S
1
G
3
Posts: 19
Reputation: 1,628

Post » Tue Mar 20, 2012 6:23 pm

Thank you very much I will go check that out! :)
B
12
S
1
Posts: 18
Reputation: 824

Post » Tue Mar 20, 2012 7:07 pm

All you need to do is add the ScrollTo behaviour to your sprite, really.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Mar 21, 2012 2:00 am

Yeah I just figured that out but thank you very much Nim-T.
B
12
S
1
Posts: 18
Reputation: 824


Return to How do I....?

Who is online

Users browsing this forum: farfetchd83, makkancs and 25 guests