How to Follow the Player?

This forum is currently in read-only mode.
From the Asset Store
Players follower. use it for anything which follows the player
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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 <img src="smileys/smiley1.gif" border="0" align="middle" />

  • 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 <img src="smileys/smiley1.gif" border="0" align="middle" />

    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..

  • Sure, here's a cap example <img src="smileys/smiley1.gif" border="0" align="middle"> Rotate World Construct Classic

  • Sure, here's a cap example <img src="smileys/smiley1.gif" border="0" align="middle" /> dl.dropbox.com/u/4714446/RotateWorld.cap

    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.

  • 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 :(

  • 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 <img src="smileys/smiley1.gif" border="0" align="middle" />

  • 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:

    dl.dropbox.com/u/105715910/RotateControl.cap

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)