Why not good

0 favourites
  • 4 posts
From the Asset Store
Setup and ready for your art, animations and story. Viral Storybook App Template.
  • From among the two examples why the second is out of order?

    ------------------------------------------------------------------------------------------------------------------------------

    This works:

    // If a monster is within 200 pixels of the player, make it start rotating towards them.

    System | For each Monster | Monster | Rotate 1 degres toward (player.x, player.y)

    System | distance(Player.X, Player.Y, Monster.X, Monster.Y) < 200 |

    --------------------------------------------------------------------------------------------------------------------------------

    Not Works why?:

    System | Every tick | Monster | Rotate 1 degres toward (player.x, player.y)

    System | distance(Player.X, Player.Y, Monster.X, Monster.Y) < 200 |

    If the every tick recurs with true one always,why the monster does not want to turn then if I am near to it than 200 pixels?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your images are too small to see.

  • Please help me understand.

  • When you say "For each", the event executes against every instance of monster. Without the "for each" it is not clear if it will test each monster, or only one instance of monsters.

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