How to Follow the Player?

For questions about using Classic.

Post » Sat Dec 29, 2012 12:39 pm

I know that in Construct 2 there's a way to make the Camera Scroll to the player. The same technique does not apple to Classic. How can I get my cam to follow the player?taqeelaSunrise2012-12-29 12:43:30
B
3
Posts: 9
Reputation: 293

Post » Sat Dec 29, 2012 12:45 pm

In Construct Classic you can tick the Attribute "Center View On Me" on the object you want the screen to follow. That's in the properties box (left) in the layout editor and may be under Groups
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sat Dec 29, 2012 1:43 pm

[QUOTE=Jayjay] In Construct Classic you can tick the Attribute "Center View On Me" on the object you want the screen to follow. That's in the properties box (left) in the layout editor and may be under Groups [/QUOTE]

Alright that did the trick. But there's one more thing I wanted it to do. Thought this would solve it but guess my logic was wrong.

So, This helped me follow the player, but is there something to rotate the player to my mouse coordinates along with my cam?

Not the "Always set angle to MouseX, MouseY" --> This rotates the player and keeps the cam stationary.
I wanted my cam to also face the mouse coordinates... as well as the player.
Like rotating the cam --> As if the player was parented to the cam and we're just rotating the cam..
B
3
Posts: 9
Reputation: 293

Post » Sat Dec 29, 2012 11:23 pm

Sure, here's a cap example Rotate World Construct Classic
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sun Dec 30, 2012 8:10 am

[QUOTE=Jayjay] Sure, here's a cap example https://dl.dropbox.com/u/4714446/RotateWorld.cap[/QUOTE]

Thanks for the .cap file :)
Rotation works really well now, but my player moves like a car with the car behavior. :P
I wanted the rotation to work with the mouse rather than the directional keys and wanted the keys to be used for movement and strafing.
I tried messing around with the events a bit but none of my options worked. The mouse just kept going crazy on me.
B
3
Posts: 9
Reputation: 293

Post » Sun Dec 30, 2012 6:09 pm

Also if possible..
How can I get the character to center more towards the bottom of the screen rather than the center. Tried making an event with scroll to --> eg: Y - 140 but that also leaves the player towards the bottom when moving in the opposite direction. In other words(Keeping in mind the rotate world event in ON): I can see up front but when I turn back I can't see anything as the player is now centered towards the top of the screen. Want the cam to automatically place a center again where the player is towards the bottom again when he turns back.
Not only when turning back when facing the sides aswell.... So better explanation would be --> Making the center always a few click ahead of where the player is facing.
Sorry for all the trouble :(taqeelaSunrise2012-12-30 18:17:51
B
3
Posts: 9
Reputation: 293

Post » Tue Jan 01, 2013 1:42 pm

I'll see if I can make that work once I get some free time, and no problem, I'm happy to help whenever I can
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Thu Jan 03, 2013 5:41 pm

I made some progress on my own... This modified version of that other .cap file kinda depicts the control scheme I'm looking for. Still need to get that view to look up front a bit... and of course mouse control.

In case you wanna take a look:
http://dl.dropbox.com/u/105715910/RotateControl.cap
B
3
Posts: 9
Reputation: 293


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests