How do I Make Enemies move properly?

0 favourites
  • 7 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • If you saw the tutorial, for make a game like "Ghost shooter",when you play the completed version of the game you made they just move without changing direction,if you play the game on the link at the start of the tutorial,they change direction to you without hitting the layout and changing direction,could anyone teach me that?

  • Have you completed the tutorial? Can you send over your capx file?

  • I think you missed this part of the tutorial...

    [quote:sh2ccbxr]Making monsters a little smarter

    Right now the monsters just wander off the layout to the right. Let's make them a bit more interesting. First of all, let's start them at a random angle.

    Condition: System -> On start of Layout

    Action: Monster -> Set angle -> random(360)

    Event 4 of the tutorial.

    They will still wander off forever when they leave the layout, never to be seen again. Let's keep them inside. What we'll do is point them back at the player when they leave the layout. This does two things: they always stay within the layout, and if the player stands still, monsters come right for them!

    Condition: Monster -> Is outside layout

    Action: Monster -> Set angle toward position -> For X, Player.X - for Y, Player.Y.

    Run the game. If you hang around for a while, you'll notice the monsters stay around the layout too, and they're going in all kinds of directions. It's hardly AI, but it'll do!

  • hint: it's on page 5 of the tutorial

  • They just walk on,they don't change direction

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I also want to make them go over other objects too

  • If your intended movements for your enemies (aside from the going over objects) is the same as the tutorial then if your not getting the same result as the tutorial you need to redo it because the tutorial is correct and works.

    As far as "go over objects" this is an extremely vague expectation. Exactly how would you like them to go over objects, overlap, climb, jump, and what are these objects; solids, sprite, other enemies? What is your gameplay top-down like the tutorial or other?

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