User Tag List

Results 1 to 7 of 7

Thread: Random frames exclude 1st

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random frames exclude 1st

    I want to pick a random frame for example 'random(100)' but exclude the first frame. How do I do that?

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: Random frames exclude 1st

    Jump to frame number: Calculation:
    [color:#3333FF]random(number of frames-1)+2[/color]
    +2 as random() will return 0+, and frame numbers are 1+

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random frames exclude 1st

    Oh that's perfect. Thank you!

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: Random frames exclude 1st

    No problem

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random frames exclude 1st

    By the Way, the Randomizer-Extension can create Random Numbers in user-specified range (randomize between min. and max. Value).
    But if you don' t want to use an extension for this, then the formula that SortaCore provided should work like a charm.
    Just one Thing i don' t understand in your formula;
    why not just:
    random(number of frames)+1
    is it related to the 1-based or 0-based indexes that the "Frames-Counter" and "Randomizer-Function" are based on?

    Greets

    jahkri

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: Random frames exclude 1st

    +1 to exclude first frame
    +1 to convert 0+ random generated number to 1+ frame number
    = +2
    Random() returns 0+ so it's 0-based.
    Frame numbers are 1+ so they're 1-based.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random frames exclude 1st

    Thanks SortaCore for this fast reply. I think i got it now.

    Greets

    jahkri

Similar Threads

  1. Random frames
    By anthonyjk123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th January 2017, 06:38 PM
  2. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 03:33 AM
  3. Few frames vs Multiple frames - game help needed
    By Marllux in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 4th September 2013, 04:13 PM
  4. IC - Exclude files in hidden directories
    By DagSa in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 8th February 2010, 12:55 PM
  5. exclude not installed files from filelist
    By Fritz_Bilda in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 12th June 2009, 01:10 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
  •