User Tag List

Results 1 to 2 of 2

Thread: Set area where random objects are loaded?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Dec 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Set area where random objects are loaded?

    Hey, I'm trying to create an area that's always on screen where, if a button is clicked, one object out of a set of about 20 objects is loaded randomly with a random value also that can be added to a counter by clicking the same button again.
    I didn't happen to find any tutorial on this, so I'd be really glad for any input you guys can give me!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    823
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    According to your description, I think this is what you're after:




    Start of Frame -->
    * Spread value 0 in Alterable Value A of "Object"
    [this will number your objects 0-19]

    Button Clicked -->
    * Toggle flag 0 of Button
    [ Flag 0 on = "assign random value mode". Flag 0 off = "add to counter mode"]

    Button Clicked + Button flag 0 is on + Alterable Value A of "Object" = Random(20) --> [this will select only one of the 20 object by matching its alterable value A to a random number]
    * Set Alterable Value A of "Button" to Random(100) [pick the random value you wanted. i'm assuming it's 0-99]
    * Set Alterable Value B of "Object" to Alterable Value A of "Button" [set the object's value. this will only affect one object since we selected it in the condition]


    Button Clicked + Button flag 0 is off --> [add to counter mode]
    * Add Alterable Value A of "Button" to Counter

Similar Threads

  1. How to see the son objects and the area out of the game during creation and test?
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th September 2013, 03:36 PM
  2. [Bug] String Objects outside visible area not destroyed
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 19th November 2012, 11:48 AM
  3. Draw with mouse - Once you have closed area, select objects within
    By StardustSpeedman in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd July 2012, 09:59 AM
  4. Little question about objects loaded in memory
    By paobrasil in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd May 2012, 05:21 PM
  5. Croping objects to within an area example.
    By SEELE in forum File Archive
    Replies: 0
    Last Post: 2nd June 2009, 02:24 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
  •