User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: path finder in maze

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    path finder in maze

    did anyone here ever create somekind a maze and create a path finder ??

    is something like this :
    a maze with 3 characters. First character controlled by player, second character move randomly but is like having a path, after the end of path it create a new random path to follow and the third character move like cacthing the first character, so the third character always chaging path according the position of the first character.

    how can I create this such event ??

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    This sounds like Pacman movement <img src="/center/images/graemlins/laugh.gif" alt="" />

    For the second movement, you can place detector objects (hidden active objects) at every place where the maze branches. The detector objects store the possible directions of movement from that point (north, south, east west). When your random player collides with a detector object, look at the possible directions of movement and select one randomly.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    I am sorry to ask this again... I am really... really new in this kind of programming....

    is true... is clone of pacman... <img src="/center/images/graemlins/wink.gif" alt="" />... but I want to make some difference....

    what kind object is detector object ??... you mean like hidden backdrop ??... and set the movement as path ??...
    I can't thank you enough if you can explain to me a little bit detail... <img src="/center/images/graemlins/smile.gif" alt="" />

    thanks... btw how about the third character ??

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    I would use 'easy grid' combined with 'pathfinding object' if this last one wasnt so buggy.
    It makes the application crash if no path can be found. But if you are making a cloneman pac ( <img src="/center/images/graemlins/smile.gif" alt="" /> ) this should work for you.

    What Sarah means with 'detector objects' is:
    You create 4 active objects, make them invisible and let them follow your player.
    The player may move until one of these detectors overlaps an obstacle.
    UltimateWalrus made an engine for 'alien' which you can find in the file-forum.
    This engine should also be fine for you if you make some small changes.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    - A detector object is an Active Object.
    - It is hidden (not visible).
    - the detector object has Static movement (it does not move).
    - You need events in your game that wait for collisions with detector objects. (MyRandom collides with Detector1 do action...)

    The third character is certainly possible. It is more complicated. Try the first two objects, and worry about that one later <img src="/center/images/graemlins/wink.gif" alt="" />

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    Actually, Raven, I didn't mean that in this instance <img src="/center/images/graemlins/laugh.gif" alt="" />

    For a simple pacman type maze, I think you can get away with just having detector objects at junctions. Of course, if the maze is circular, or has curved slanty bits - it all gets a lot more complicated <img src="/center/images/graemlins/wink.gif" alt="" />

  7. #7
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    oke... I will focus with the second character. <img src="/center/images/graemlins/laugh.gif" alt="" />
    Oke I already follow your short instruction. But how to make this 2nd character move to the another direction ? because I choose the 2nd character movement as path and make this 2nd character move to the first detection.

    I had make an event with "gh is overlapping dt1" and then I blank, I don't know what to fill. I have right click on the box under the "gh" and can't find suitable option that can say "pick another direction" or something like that.

    I hope you not feel annoyed with may question.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    I have set up a simple little example here:
    http://clickteam.com/center/showflat.php/Cat/0/Number/18294/an/0/page/0#Post18294
    I hope you can open it with the demo version...

    My random object does not use path movement. I leave it as Static and move it myself with events.

  9. #9
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    thank you sarah... now is clear to me how to do that...

    thank you very much....

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: path finder in maze

    I've found a problem with my example <img src="/center/images/graemlins/crazy.gif" alt="" /> You also need to do the following:

    When you collide with a detector, deactivate all the event groups for the other detectors. At the end of the event group for each detector - the Always event - activate all the collision detector event groups again.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Weekend Finder
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 26th November 2009, 11:37 PM
  2. Vitalize PlugIn object and Advanced Path Finder
    By TreeHugger in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th September 2009, 03:56 PM
  3. Path finder problems.
    By Skeets in forum File Archive
    Replies: 0
    Last Post: 3rd June 2008, 07:25 PM
  4. Value Finder
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th June 2007, 10:10 AM
  5. Value Finder object?
    By Clicktastic in forum Extension Development
    Replies: 8
    Last Post: 16th January 2007, 06:46 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
  •