How to make object run from the player?

0 favourites
  • 4 posts
From the Asset Store
Game "Word Search" with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hello,

    im new to the Construct, fresh off basic game tutorial and I want something really basic on my own. At least I think this could be basic, but hey, what do I know about making games?!

    anyhow, I checked tutorials on site and forums and didnt find tips that could help me so maybe you could point me to the place, where someone has already talked about it (im sure someone has).

    The problem:

    I want to make game where player must catch dog, and dog is always running away from him. Player moves to his direction, and dog is always trying to stay at the same distance. I know how to make object move toward player, but how to make it move away?

    Im really sorry if this is a repost, I just couldnt find it on forums.

  • Just spent 2 mins on this. It does the job. But without knowing (visually) what sort of scene you're trying to make, it is a bit hard to figure out what you wanted.

    dl.dropbox.com/u/108799982/Capx%20Demos/BasicDodge.capx

  • This should work if the object has a bullet behavier:

    every tick ---> object rotate 1 degrees(x=Plyer.Y,Y=Player.X)

    This makes it rotate away from the main player.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank You very much both of You, those tips works just as I need, ill experiment in using them both :)

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