User Tag List

Results 1 to 7 of 7

Thread: Identifying Created Objects

  1. #1
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Identifying Created Objects

    I am working on a game where words are dropping from the top of the screen, and students have to shoot the correct ones. This will happen in waves. Each wave of correct words are loaded into a list object. The same with the incorrect words. I am creating active system objects and loading the text from the list objects. Everything works well, except for loading the text into the created AS objects. I can't seem to find a way to identify one from another. The text ends up being loaded into other AS objects as well, sometimes in a seemingly random fashion. Any ideas on how to get this under control. I tried to use a spread but that didn't seem to work. Any help appreciated.
    Steve

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying Created Objects

    Are you loading the AS boxes via a loop? this should work...

    this assumes you have your list loaded.

    Start of Frame
    - Spread Value AltValA of ASboxes.Group(1)

    Trigger the Loop "Load ASboxes" the number of times that there are lines in the list obejct.

    On Loop "Load ASboxes"
    + ASboxes.Group AltValA = LoopIndex("Load ASboxes")+1
    - Set Text of ASboxes.Group to GetLine(LineNumber(LoopIndex of "Load ASboxes")+1)

    My syntax is not exact, but you get the point.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying Created Objects

    I'm using a loop to load the questions and answers into the list boxes. But I can't use a loop to create the ASBoxes since there needs to be a time delay. The questions and answers are being created one at a time after a random amount of time at the top of the screen and then dropping. Thats why I don't think that the spread value is working the way I would like. Thanks for the idea.
    STeve

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying Created Objects

    ah! I think I see now...

    could you throw in a Counter, and every time an AS box is created, it adds one to the counter and then sets it's AltValA to the counter value? Then use it's AltVal to pull from the right question to the list...

  5. #5
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying Created Objects

    Good idea, aidmm. I'll give it a try. I've simplified the problem a bit in my post, since there are 10 waves of questions, and the coding is all working EXCEPT for this problem of identifying the created objects.

    I was trying to create 10 correct answer AO boxes and 10 incorrect answer boxes. But I can't find a way to create the boxes randomly without tons of lines of code. It would be nice to be able to create using an expression.

    Thanks again.
    Steve

  6. #6
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying Created Objects

    It worked! Not without some problems, but finally success. The counter idea did the trick. Thanks aidmm.
    Steve

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying Created Objects

    great to hear, steve!

Similar Threads

  1. created objects create objects and destroy both.
    By wizlore in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th September 2012, 08:37 PM
  2. Any way to track Created objects
    By rubes in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd December 2011, 05:36 PM
  3. Created Objects ?
    By Captain_Harris in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th November 2011, 12:10 PM
  4. Question about Objects Created
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd February 2009, 06:57 PM
  5. Created Objects on wrong layer
    By xerus in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th July 2006, 06: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
  •