How do I get enemy to capture player.

  • I made a track game for my daughter and I am learning more and more as I mess around with C2 but I still have a lot of learning to do. I have it where my player is chased by an enemy around a race track that has power ups. As I go around the track the enemy gets close to me but won't ever catch me. It seems to be just trailing me. I will try to upload the game. Don't know if I exactly know how but will try.

    What I need to know is why won't it catch me instead of just follow me.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You had a line of sight behavior on the enemy but no event to use it. So I added an event for when the enemy can see the player the enemy will move at an angle towards the player. You can play with the number of pixels the enemy moves in the action to get a speed that you like.

  • Here is an example where I integrated a waypoint system into your game.

    doesnt have a finish system or anything, but from the example I am guessing you should be able to make something out of it

  • shirokum - Thank you I will mess around with the numbers and see what I come up with.

    @lennaert - At this point I only have the free version. It won't let me open the version you downloaded. I plan to buy the license but right now can't because was hurt at work about a month ago and workers comp checks have not come yet. I don't know if there is a way to save it in an older version. It says I have r163 and you have r164 if that helps. I do thank you very much for taking the time to help me.

    I found construct 2 because I wanted to fill my day with something to do while off work hurt and my daughter likes the idea that I can make something for her to play.

  • Ohw, I used the latest beta version, its downloadable.

    I did not use any licensed features.

  • thank you. I downloaded latest version. I can open it now, I will look and see what I can do with the example that you provided. it looks like you placed a predetermined path for the enemy sprite instead of a pathfinding to the sprite if I am looking at it correct?

  • Yes indeed, that method will allow an enemy player to be quicker too if the player plays really bad.

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