User Tag List

Results 1 to 5 of 5

Thread: Adventures in Object Selection Issues [MFA INCLUDED]

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adventures in Object Selection Issues [MFA INCLUDED]

    Hi, all.

    So here's a bug that's had me puzzled for an hour and a half straight: I have a simple little example here where I'm trying to make strings of letters move across the screen in a sinewave. I have more than one of these strings onscreen at a time, so I've arranged things such that each assembly of letters is controlled by a single "Daddy" object, using a timer value. In order to properly select my objects, I use fastloops and spread values; Each Daddy is given an ID, which it shares with each of the ten letter's it's responsible for.

    My "move" loop goes something like this:

    Always:
    -Add 1 to Timer("Daddy")
    -Start loop "move" [# of Daddy objects] times

    On loop "move":
    +If ID("Daddy") = loopindex("move")
    +If DaddyID("Letter") = loopindex("move")
    -set X("Letter") to Timer("Daddy") - 20*[String index of the Letter]
    -set Y("Letter") to sin(10*Timer("Daddy") - 20* [String index of the Letter]

    So long story short, my setup works fine with one or two assemblies: my events seem to successfully distinguish between the two strings, and each one will move independently. But when a third assembly is created, the second one will stop moving, leaving only the first and third in motion. Basically, at any given time, all but the newest and oldest of the assemblies are motionless.

    I've hypothesized that this might just be an issue with how my IDs are set up, but I've looked that over and its pretty standard stuff. Do you suppose that I'm not using the MMF2 object selection system quite right?

    Here's the file: I'd be much obliged if somebody could shed light on my conundrum.
    http://www.mediafire.com/?v51t0t55th15van

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pikzilla - Had a look at your file and it seems like the problem is in line 21. You add 1 to Tim and then start a fastloop. By putting these on separate lines it works on my PC. As a general rule, don't place other actions in the same event as a fastloop as they don't always work like you think they will (weird I know!)
    Attached files Attached files

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, thanks a bunch for the tip, man- it seems to have fixed the problem!

    Is there any general lesson to learn from this about the way MMF2 handles the order of actions?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pikzilla - Glad I could help. The general lesson is to always place Start Fastloop actions on their own.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You should also be able to use the event list editor, to make sure the fastloop is the last thing to trigger on a single line of code. I don't know if it will fix your exact problem but I haven't encountered any issues if I put the fastloop call last.

Similar Threads

  1. Set Font size, Resize object doesn't work in Android! [Example MFA included]
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 13
    Last Post: 28th September 2013, 10:41 PM
  2. Can't get jump animation to work with platform movement object - mfa included
    By edman3d in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st September 2013, 09:58 PM
  3. How to make a backdrop object overlap an active object? mfa included
    By path in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th August 2012, 10:07 PM
  4. Object selection
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 2nd September 2009, 10:56 PM
  5. Object Selection issues
    By artician in forum File Archive
    Replies: 5
    Last Post: 21st May 2008, 12:40 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
  •