[How Do I] Make the camera follow the player

Get help using Construct 2

Post » Thu Oct 03, 2013 7:53 pm

Hey guys, I know how to make the camera follow the player, but when I run the game all of my object in the layer don't show up it's just blank, and when I remove the behavior, it works fine other than the fact that the camera doesn't follow the player... Help me. :)
B
2
Posts: 3
Reputation: 156

Post » Thu Oct 03, 2013 8:01 pm

Layout*
B
2
Posts: 3
Reputation: 156

Post » Thu Oct 03, 2013 8:05 pm

You'll need to upload your .CAPX for us to look at - it's difficult to figure out what's wrong if we don't know how you have things setup.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,106

Post » Thu Oct 03, 2013 8:07 pm

For the player, try using the ScrollTo behavior with them.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
46
S
24
G
30
Posts: 516
Reputation: 19,437

Post » Thu Oct 03, 2013 8:13 pm

Ok, well, I just updated Construct 2 to the latest update, and I updated it last night. I didn't change anything for the settings or whatnot. When I add the ScrollTo behavior to the player, and then when I run the game, it's blank and doesn't show my objects that are on the layout, but once I remove the ScrollTo behavior, everything it fine and shows up again.
B
2
Posts: 3
Reputation: 156

Post » Mon Oct 07, 2013 4:18 am

You must be doing something wrong, because I have the latest version and the scrollto behavior for my project's player entity, and it works fine.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
46
S
24
G
30
Posts: 516
Reputation: 19,437

Post » Mon Oct 07, 2013 5:10 am

you'll need to show us the capx, i'm 100% sure you made a mistake somewhere.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Mon Oct 07, 2013 5:34 am

This will help a lot :)

https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2

Goes over much of C2 works and the principles.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013


Return to How do I....?

Who is online

Users browsing this forum: ksiads and 1 guest