Monster won't follow player

0 favourites
  • 6 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hello, I'm very new here.

    I'm following "the Beginner's guide to Construct 2"

    until page 5 where the tutorial told me to use this

    Condition: Monster -> Is outside layout

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

    to make monster follow player.

    but it just didn't happen when I run the test

    Please help,

    Thank you very much

    dl.dropboxusercontent.com/u/17026840/Untitled-1.jpg

  • Make sure monster has the bullet behavior and also that you do NOT have destroy outside layout set on your monster. Also I don't see anywhere in your code the logic that spawns new monsters...

  • Perhaps it's because it's only "following" the player when the monster is outside the layout, rather than inside.

  • Thank you for your replies

    Perhaps it's because it's only "following" the player when the monster is outside the layout, rather than inside.

    I add new event

    Monster is on-screen : Monster is set toward (Player.X, Player.Y)

                                           under

    Monster is outside layout : Monster is set toward (Player.X, Player.Y)

    Now it work!! but is this the correct way to do it?

  • Make sure monster has the bullet behavior and also that you do NOT have destroy outside layout set on your monster. Also I don't see anywhere in your code the logic that spawns new monsters...

    Thanks for the tip but I haven't reach that part of the tutorial yet but could u please tell me how to spawn a new one? I can't find it in the beginner guide <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe this behaviour is set on your "Monster" object: "Destroy outside layout".

    I had the same problem, just removed that behaviour and it worked !

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