Pathfinding issue, enemies glitch through walls

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi all, i have been struggling with an issue for a while now and it's the last remaining major bug in my game. I have a pathfinding engine that works perfectly however causes enemies to glitch through walls every now and then, usually when they continuously collide with a wall. The engine itself is quite simple so it should be easy to understand. Groups "Pathfinding" and "No Stack" should be the only groups you will have to work with.

    I really need zombies not colliding through walls XD

    File: Please login to see this link.


    Thanks so much for the help, am willing to pay if it is too much work.

  • Does this happen all over the game or just at specific areas or walls? If so, you could place hidden objects at just the problem areas so that if they overlap that object something happens. This may not be a perfect solution but perhaps reduce the occurrences.

  • You stated the problem occurs: "usually when they continuously collide with a wall"


    Is that one time? 5 times? 1 second? 5 seconds? Set an event or counter to prevent the "continuously collide" action of the zombie.

  • It appears the problem occurs when the zombies are near the wall and overlap each other. Try adding a command to prevent the the zombies from overlapping. Post an update when you do.

  • I've been looking at your game. I believe I see the problem. Do you want any standard zombie to gain access through the wall? Do you want any Kamikaze zombie to gain access through the wall? Do you want any Big zombie to gain access through the wall?

  • I was glad to hear the example I sent you solved the specific problem you asked about.

    To address your other question: I don't know what your full game specs are so I cannot give you solutions for scenarios I am unaware of. You are correct in that the pathfinding extension needs some work when a lot of actives are involved. The glitch is real. I am not aware of another pathfinding extension however.

    Recommendations:
    1. Report the Pathfinding Bug to Clickteam. Show them the example I sent you.
    2. You have to be specific in showing the scenarios you need help with. It looks like you have a good start but you need to show what the "real" game will look like and what the "real" problems are. Sometimes you have to program with what you have and refine the design to get what you want. Try different approaches like I did during testing.
    3. I am not aware of another pathfinding engine.

  • Well the code will work with a small change. The safe zones need to be part of a group so that if any zombie touches or overlaps a safe zone it is destroyed. That code is simple. The tricky part is where to recreate the zombies due to the problems with the pathfinding algorithm. This needs to be at the corners of the enclosed areas and should be done in a random way so the user does not know it is happening.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!