User Tag List

Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 37 of 37

Thread: Polygon-based A* Pathfinding Example (extensionless)

  1. #31
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    504
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @aenever
    Nice examples!. much appreciated!.

  2. #32
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,651
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    @MEHRDAD I think I've done. It seems to be working pretty much perfectly. It was definately easier to implement than I though. I've divided the 32 directions between the 8 directions as best I could. It doesn't split evenly, even though 32 divided by 8 is 4. The base directions are 0, 4, 8, 12, 16, 20, 24 and 28. That means either the traditional 4 directions or the diagonal directions will need to have extra directions designated to them to space out the directions.

    In my example, I've chosen the tradition 4 directions to have the extra directions; yet it should be easy enough to change it if needed. For example if you'd rather the diagonals have more than the 3 directions set to them, you could give them more of the 32 directions from the tradition 4 directions.

    Anyway, here you go I hope it helps out. I hope it helps others too if they wanted to implement 8 direction turn around animations pp34 Dir instead of Angle + Turn Around.mfa

    PS. I reduced the colours again to minimise the file size; you might want to copy over the objects and lines to the original .mfa that Sketchy / MuddyMole most generously shared.

  3. #33
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    504
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's SO GREAT!!
    Only a little issue: Character has move when "turn animation" is playing. I do not want the character to move during the "Turn animation" and after finish turning walk it go to the direction

  4. #34
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,651
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    Oh I see, hopefully that shouldn’t be too hard to change. Although it might take some time and a bit of experimenting. I’ll look into it

  5. #35
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,651
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MEHRDAD View Post
    It's SO GREAT!!
    Only a little issue: Character has move when "turn animation" is playing. I do not want the character to move during the "Turn animation" and after finish turning walk it go to the direction
    Solved, and it was even easier than I thought to fix. In line 122, just add a negated if the turn animation is playing I even tested with animation speed very low to make sure. It works perfectly.

    pp34 Dir instead of Angle + Turn Around.mfa

  6. #36
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    504
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome!!!. It works right perfectly. Thanks so much @aenever

  7. #37
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,651
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    No problem, glad to help.

Page 4 of 4 FirstFirst ... 2 3 4

Similar Threads

  1. New Pathfinding Example (extensionless)
    By MuddyMole in forum Fusion 2.5
    Replies: 28
    Last Post: 17th January 2022, 01:19 PM
  2. Easy Pathfinding Widget (extensionless)
    By schrodinger in forum Fusion 2.5
    Replies: 206
    Last Post: 31st December 2019, 04:22 AM
  3. Pathfinding using nodes of a polygon
    By voodooidiot in forum Fusion 2.5
    Replies: 4
    Last Post: 6th August 2018, 04:35 PM
  4. Polygon-based Shadowcaster
    By MuddyMole in forum File Archive
    Replies: 9
    Last Post: 31st October 2013, 01:41 PM
  5. Tree-Based Pathfinding Example (VERY basic WIP)
    By Dines in forum File Archive
    Replies: 15
    Last Post: 11th July 2007, 06:09 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
  •