User Tag List

Results 1 to 9 of 9

Thread: Spread value and object selection, part II

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spread value and object selection, part II

    This is a sort of follow-up to a question I posted a few days ago.

    I have spread an ID-value to an active object with lots of duplicates. When a duplicate is selected (when its ID matches another variable) it is supposed to do stuff. It works like this:

    ID of ("Active") = Another variable --> Do stuff, Active.

    It works. But. When I put "only one action when event loops" it just performs the action once, and not whenever "another variable" changes. I can sort of see why this is happening. But is there a smart way around it?

    Thanks,

    Tommy

  2. #2
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    I think you could do:

    +ID of ("Active") = Another variable
    -Set Flag 0 on

    +Flag 0 is on
    -Do stuff
    -Set flag off.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    Thanks. That doesn't seem to do the trick, though. Same outcome =/

  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    Hmmm, really? Are you sure your events are ordered correctly?

  5. #5
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    Well, I'm experimenting with the ordering right now. Subtle changes can have pretty dramatic effect, and I don't always get it =)
    Maybe I'll get it to work!

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    Nope. It doesn't work, no matter in what order I put the events. =/
    In case you're wondering what I'm trying to do:

    The active objects are floor tiles that are supposed to animate (one action when event loops) when the character walks upon them (sort of like the Billy Jean-dancefloor, you know?). Any ideas of how to achieve this?

  7. #7
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    I made a quick example. Move the active around with the arrow keys and if it overlaps a dot, it changes its frame. This should help.

    http://www.mediafire.com/?ehfcgmvbndg

  8. #8
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    Thanks!

    Aaaaaaaaaalmost there. Now the only problems are:

    A, I don't really get the theory behind that loop stuff

    But more importantly

    B, You can't go from overlapping one object to another and have the first one stop animate, without first having to not overlap any of the objects. Hmm.

  9. #9
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spread value and object selection, part II

    The "theory behind that loop stuff" is that at the start of the frame every dot is given a number, starting at 0 and going to 500. A loop is always running 500 times and you compare the Alterable Value A to the LoopIndex of the loop, and that works with MMF2's built-in object selection.

Similar Threads

  1. Only show part of object that overlaps another
    By Ryzla in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th December 2013, 06:03 PM
  2. Spread value on creating object (BUG?)
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 4th April 2013, 05:28 PM
  3. Collision with part of an object
    By MintBrick in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 24th May 2010, 12:05 AM
  4. Problem with spread ID and object selection
    By gum in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th September 2007, 05:32 PM
  5. Objec t Selection / Spread Value Question
    By Golds in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd August 2007, 04:09 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
  •