Make an object follow the player without rotating?

0 favourites
  • 4 posts
From the Asset Store
Simple resize and rotate events for any sprite, quick and easy event sheet that you can use for your own projects.
  • I'd like it to stay flat without any rotation while it follows the player around, ala a tile based game only I'm not doing tile based movement. Does this make sense? I hope so.

    Any help would be much appreciated. Thank you!

    • Tom
  • Will the follower be moving at the exact same pace as the followed?

    Will there be a delay, or a certain distance between them before he starts following?

  • Nope, I plan to have the follower be a bit slower and I'd like him only to follow if he's visible to the actual player looking at the screen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check of the object is in the screen.

    Give him custom movement.

    Check if Follower.X > Followed.X,

    If it is, set its horizontal speed to eg. 3

    Else, set its horizontal speed to eg. -3

    Check if Follower.Y > Followed.Y,

    If it is, set its vertical speed to eg. 3

    Else, set its vertical speed to eg. -3

    To make him stop when near the followed.

    Check if distance(follower.Y,0,followed.Y,0) is NOT < eg. 50 when doing the above events.

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