How do I made an teleport to the player when is certain distance from them?

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi, i'm sure this is a dumb question but I can't figure it out ( I am new).

    I want a void to constantly be moving behind the player but I don't want the player to be able to get to far away from this void

    So in the game the player is in a maze but a void is constantly following them.

    So the void will teleport behind the player when it is a certain distance away from them and be following them constantly with the bullet behaviour.

    Thanks

    (sorry bad grammer, being noob etc)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You probably don't want the bullet behavior, you probably want to use Follow. If you want the void to be very smart and exploit the maze for shortcuts to the player you want to use the pathfinding behavior.

    Another option is the Moveto behavior.

    If using pathfinding or Moveto what you want is every second or so (or three) see if the void is too close or too far from the player with the distance function. If too far update the behavior again so it heads for the player, or have it stop if too close.

    yours

    winkr7

  • Okay, thank you so much for your reply. I'll have a read of the manual about them behaviours you mentioned.

    I'll keep you updated!

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