User Tag List

Results 1 to 4 of 4

Thread: Spread Value & New Object Creation: Why do the ID numbers change on actives?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spread Value & New Object Creation: Why do the ID numbers change on actives?

    I'm going through some old concepts that I guess I still don't understand. In this example, you can click the + button to add an active. There is a string assigned to it to keep track of the spread value. What seems to be happening, though, is rather than adding one new active with the next highest number, it is creating the new active as ID of 0 and renumbering all the previously created actives by adding 1 to their previous ID's. For my purposes, i don't want the ID's being renumbered. Is there a way to accomplish this with spread values, or is this something i should be managing manually?

    I'm surprised by the renumbering aspect, and that's what's throwing my logic out the window. In the example, the actives are drag/drop and when you click on an active, its number is shown in the upper right of the screen. There's a - button that if you click on that, the next active you click on will be deleted, and again, the numbers shift
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    That's the way spreading values works - the newest instance is set to whatever value you chose to spread, and progressively older instances are set to progressively higher values.
    It sounds like all you want to do is just have a counter, and every time you create a new active, add 1 to that counter and then set the newly created active's ID to the value of the counter.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you're right MuddyMole, the counter is going to be my friend here. Given this, i think I'll be skipping the Spread Values portion, and just manually doing this. It's not that big of deal, and hey, i learned a little bit more about the spread value. I obviously wasn't expecting the numbers to increment, but i'm sure now that i know that, i'll have a use for that knowledge in the future.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can also spread the value (let's say to av A with a spread of 0) then subtract the total number of objects of that object and take the absolute value from that answer
    So for example

    +Upon Pressing 'Enter'
    -Spread Value '0' to Alterable Value A
    -Set Alterable Value A to 'abs(Alterable Value A -(Number of objects))

    This outta reverse the spread value order.

Similar Threads

  1. Random Numbers and expiring the result numbers.
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th April 2013, 04:11 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. Change Active Animation Based Upon Actives Near It
    By Oreo in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 24th August 2011, 05:01 PM
  4. Spread value and object selection, part II
    By gum in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 19th September 2007, 06:26 PM
  5. 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

Posting Permissions

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