User Tag List

Results 1 to 2 of 2

Thread: Creating a random object upon destroying another object?

  1. #1
    No Products Registered

    Join Date
    Feb 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating a random object upon destroying another object?

    I want to launch a random powerup whenever I destroy a certain object instead of getting the same powerup every time. However, I don't know how to randomize the powerups so the outcome is different each time. How do I do this?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2010
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when you create the a certain object set a value to it. and use the random range. This way you can set an alt value to a random value, and then check for a specific, or a value in a range when it is destroyed, and reward the player on certain values, and not reward on others, or just ahve other rewards on those values.

    I have random dorp for my enemy example:
    start of frame: set alt value loot1 to RRandom(0, 4 )

    and when they die:
    health <= 0 start lopp for each certain object named "dead"

    On each on of "ceratain object", loop named dead
    and value loot1 lower or equal to 1 create object laser gun

    On each on of "ceratain object", loop named dead
    and value loot1 greater than 1 create object pipe

    On each on of "ceratain object", loop named dead
    Destroy

Similar Threads

  1. Creating and destroying object issues
    By n3rdlif3 in forum Fusion 2.5
    Replies: 2
    Last Post: 3rd March 2015, 06:46 PM
  2. creating and destroying objects limit?
    By DaveC in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th September 2011, 09:52 PM
  3. Creating a random object from a qualifier group
    By Ravenius in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th April 2010, 05:37 PM
  4. creating an object at a random position
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th June 2009, 03:05 AM
  5. Creating a Random object
    By im2famous4u in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th March 2008, 12:09 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
  •