Spaghetti_Inc's Recent Forum Activity

  • Ok so everything works except now the enemies are walking through the invisible walls I have set up. I have been messing around trying to get it to work and its still not working.

  • To approach this efficiently, think about when you would actually need to update pathfinding. For starters, if an object has line of sight, you don't need pathfinding at all.

    When line of sight is broken, run pathfinding for that instance only.

    Upon reaching the first node or corner, check again if you have line of sight or not, and run pathfinding again if not.

    Basically during the whole time the object is traveling to that first waypoint, running pathfinding again is useless because the result will be the same anyway.

    Oohhhhh I get get! Thanks for the help! That should fix my problem. One problem I was having with my current code was when there got to be to many enemies on the screen some of them would just no longer move.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So if I want the enemies to be constantly chasing the player I shouldn't be updating it every tick. Would I want it to update every like 10 ticks or so and use some wait commands to achieve that? Thanks for the help.

  • You do not have permission to view this post

Spaghetti_Inc's avatar

Spaghetti_Inc

Member since 9 Oct, 2021

None one is following Spaghetti_Inc yet!

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies