User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21

Thread: Pathfinding issue, enemies glitch through walls

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pathfinding issue, enemies glitch through walls

    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

    File: http://www.mediafire.com/file/ts5e96...g+Wall+Bug.mfa


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

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,431
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    How about adding a always condition to check if an enemy is close to a wall, like one pixel, and if so they are deleted or whatever.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No sadly it's necessary, it's how the engine works

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone got any ideas?

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,431
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    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.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No there is no pattern i can notice, it just occurs when a zombie is colliding with a wall after x seconds.

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,431
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems arbitrary to me, just a fault with the pathfinding. The engine itself requires objects to continuously collide to work sadly.

  9. #9
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,431
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    To solve the problem you need to find an event of the zombies behavior you can trigger on or change the design of your game.

  10. #10
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,431
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    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.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Beginner PATHFINDING for a 2D 4-directional game's enemies?
    By HomelessGoomba in forum Fusion 2.5
    Replies: 5
    Last Post: 8th November 2014, 09:13 AM
  2. Issue with walls
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th January 2012, 07:22 PM
  3. Enemies that follow walls
    By AimeeExorcist in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 30th April 2011, 12:04 AM
  4. Enemies getting stuck in the walls when thrown
    By mobichan in forum File Archive
    Replies: 2
    Last Post: 7th May 2009, 05:08 PM
  5. Enemies that bounce into walls when hit?
    By machrider in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd May 2007, 07:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •