User Tag List

Results 1 to 4 of 4

Thread: weird problem with direction selection via random value

  1. #1
    Clicker

    Fusion 2.5

    Join Date
    Apr 2011
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    weird problem with direction selection via random value

    Ok. Even the logic of this totally eludes me. I have a series of tiles. each tile determines available moves based on the type of object overlap'd and a random number. The object designated enemy is the problem. When there is only 2 choices, there is no problem, however at 3 or more options the object usually, not sure if always... I have gottena little lost trying to track it down, jumps around corners. in other words it skips the tile with multiple options.

    I am not sure of the rules so, I am posting the file via link, I would appreciate the help and any advice.

    https://www.dropbox.com/s/w0ly0lhios25tqy/dungeon.mfa


    DC

  2. #2
    No Products Registered

    Join Date
    Apr 2013
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The enemy value that determine direction of movement is always 2 no matter what, is that something for testing purpose only?
    And the enemy cutting corners is quite simple oversite. They move more then once per "turn". When you click button, the enemy will move according to "enemovcon" value(always 2) and overlapping tile. After that it will overlap different tile and the "button clicked" event is still processing => he will move again. To fix it just set flag after the first move and test for that flag in each event that moves enemy's. Then reset it at the end of frame.

  3. #3
    Clicker

    Fusion 2.5

    Join Date
    Apr 2011
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So in other words the event is happening far to quickly, then happening twice?
    Yes the 2 value was something I forgot to undo, its supposed to be random, but I was testing and starting to go mad. Going to try this out, Thank you for the timely reply
    DC

  4. #4
    Clicker

    Fusion 2.5

    Join Date
    Apr 2011
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right. that fixed it, to be clear, what I did was on button press, add a event that turned on flag0 and made sure the flag was true before the move could occur. if the event was true, the flag turned off at the termination of event. then to clear all chances at the end of frame. I jsut need to finish all the tiles and that should be it.

    Again thanks for the help BigHatLogan!
    DC

Similar Threads

  1. MMF2 weird object selection?
    By JimJam in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th November 2010, 10:16 PM
  2. Random direction
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th June 2008, 02:10 PM
  3. Movement without aut.direction selection?
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th February 2008, 05:01 PM
  4. Random ladder selection for enemies
    By Caesar in forum File Archive
    Replies: 6
    Last Post: 17th November 2007, 04:11 PM
  5. Bug: Weird random pattern!
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 18th March 2007, 05:48 AM

Posting Permissions

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