User Tag List

Page 11 of 21 FirstFirst ... 9 10 11 12 13 ... LastLast
Results 101 to 110 of 205

Thread: Easy Pathfinding Widget (extensionless)

  1. #101
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    OK, then you just need to:

    1) untick "create at start" in goblin object properties
    (we are going to create it dynamically)

    2) name an alt value in Goblin object to "my_bug" (this is not needed, but useful for reference)

    3) modify the code inside the "bug movements" group, the second half at the bottom, to make it look like this:



    (this will create a goblin for each bug, but I guess you only have the number of bugs you need in your frame)

  2. #102
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot . It works now for Goblin only while I want two different characters for two different bugs . You suppose I have a hero and his friends into the game .
    Is it possible we insert another bugs with different name into the engine ? or another way

  3. #103
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Yes there are many ways to accomplish this,
    i.e. taking from previous post:

    1) apply a qualifier to all of your different characters (goblin etc.), es. "NPC"

    2) in the picture posted above, from line 79 on, replace all references to "goblin" objects with this "NPC" qualifier

    3) from the picture above, remove lines 77 and 78, and instead do something like:

    start of frame
    +(pick a bug of your choice, i.e. if you have only two you can state "flag 5 OFF" to select the one not chasing)
    >>> create "player character" at 0,0
    >>> set my_bug("player character") to "fixed value of bug"

    start of frame
    +(pick another bug of your choice, i.e. if you have only two you can state "flag 5 ON" to select the chasing one)
    >>> create "chaser character" at 0,0
    >>> set my_bug("chaser character") to "fixed value of bug"

    and so on for each single character you want to pair


    If you have hard times let me know and I'll upload a quick example

  4. #104
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I put your code but disappear goblin . I haven't flag 5 . What is it? I use 'easy_path_widget_follow_player' example that was two bugs and follow together
    If you don't mind please upload quick example...
    I'm appreciate for your works

  5. #105
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Ok here's an example:

    easy_path_widget_multi_char.mfa

    I did just what I was talking about in last post,
    but used "run this event once" instead of "start of frame"
    because chaser declaration was below, in general events, after this code,
    while I needed to perform this after chaser declaration
    (and "run this event once" happens after "start of frame")

    Here I use "fixed value=select bug" for the main player because the example was built with this kind of "player selection" working
    but if you have only two character, you can simply use flag 5 OFF
    (like the condition below, when is tested ON for the chaser)


    EDIT: of course I didn't fine-tune, you'll want to use a layer object for sorting characters (by Y decreasing)
    and avoid them being one in front of the other randomically

  6. #106
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much it's work perfect now

  7. #107
    Fusion 2.5 (Steam)

    Join Date
    Mar 2016
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for awesome work schrodinger. Can i ask you to post even simplier version like:
    -only one moving object - simple point and click
    -no additional objects
    -no selection
    -no rotation
    etc.

    Thank you.

  8. #108
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Did you check the "official" first release here?
    http://lizardking.co/easy_path_widge...ath_widget.zip

    there is no rotation,
    as for not having other objects, you can simply remove all bugs but one from the frame editor

    code is (moderately) well commented so you should be able to remove any bits you don't need
    (like selection)

  9. #109
    Fusion 2.5 (Steam)

    Join Date
    Mar 2016
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you alot! Another simple question: how to resize this to 64 x 64 for example? I changed grid_X_size and grid_Y_size to 64 and the object itself to 64 x 64 but it doesnt work at all, looks like i missed something...

  10. #110
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    You did correct, but you have to make sure your level is also drawn respecting this new grid,
    otherwise most of the paths will be tagged as "obstacles" (because grid cells contains an obstacle block)
    and the players won't be able to move

    i.e.:
    easy_path_widget_64.mfa

Page 11 of 21 FirstFirst ... 9 10 11 12 13 ... LastLast

Similar Threads

  1. Multiple pathfinding with Pathfinding Object
    By Erkabubben in forum Fusion 2.5
    Replies: 12
    Last Post: 16th July 2017, 07:54 PM
  2. Pathfinding
    By Limyr in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 28th November 2012, 09:58 PM
  3. pathfinding example
    By method72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th June 2012, 08:23 PM
  4. 3D menu Widget - Wild Widget Contest entry
    By Czentnar in forum Widgets
    Replies: 16
    Last Post: 26th March 2011, 12:51 AM
  5. The Digit Widget [WIP] (multi-widget)
    By Raylax in forum Widgets
    Replies: 1
    Last Post: 13th December 2008, 11:42 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
  •