How do I make my enemy face the player when attacking?

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • I have this game for my class project (sprites used only for learning purposes) and I already submit this game on a due date. And then I thought of how to make the enemy face me while attacking.

    Here's the URL from what I've done:

    drive.google.com/open ... iSolrxek7f

    Feel free to test it out.

    The problem occurs in event sheet 4 -> Turkey Robot -> TR attack

    I really am not sure if I did right on collision with "MissileActivate" for the enemy to face the player to launch a homing missile.

    Big thanks to those who help! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe try something simple like

    On enemy Fire (or Missile Activate? Whatever your trigger is)

    Is Player.X less than or equal to Enemy.X then Set Enemy Mirrored

    Is Player.X more than or equal set Enemy Not Mirrored

    If its more of a top down game, then maybe try setting the Enemy Angle towards the player

    Sorry not more help but can't follow that link so unable to look at your file

  • I found out how~ but thank you for the help Christmas!

    It's not "Enemy on collision with Missile activate" to make the enemy face the player...

    Suppose it has to be:

    On animation "_____" is playing, then add sub-event

    Is Player.X less than or equal to Enemy.X then Set Enemy Mirrored

    Is Player.X more than or equal set Enemy Not Mirrored

    Problem figured. Thanks!

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