Multiple enemies running away from player?

0 favourites
  • 3 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Hi,

    I have been looking into other topics and I found the way that make an enemy run away from the player. However, I'm trying to make multiple enemies to run away, so I can create multiple instances and all of them would be affected. I tried with Families, but I may have done something wrong...

    Does anybody knows how to make multiples copies of each enemy to behave independently, so each enemy runs only when the player gets closer and not all of them running at the same time?

    A sample capx can be found here in this link

    This could be like the ghosts from Pacman, whenever pacman eats the white pill.

    Any help would be great! Thanks!!!

  • First problem was you had default controls on for the enemy 8-direction, so it was just doing whatever the arrow keys said. Second, you need a way to marry the EnemyBox to the Enemy for picking, not just positioning.

    This is one way. 'Containers' are another:

    runningaway_BHT.capx

    (And keep your helper boxes visible, so you can see what's going on as you develop. If you turn them on in your current code, you'll see the two EnemyBoxes are actually pinned to only one Enemy.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • blackhornet thank you so much, that is really simple... I still have too much to learn!!!! Thanks!!!! Whenever I finish this game, I will place you as Special Thanks! :)

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