User Tag List

Results 1 to 3 of 3

Thread: How to make an object randomly appear if someone clicks?

  1. #1
    Clicker 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)

    Join Date
    Dec 2014
    Location
    UK
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make an object randomly appear if someone clicks?

    Hey I've been messing around trying to figure out how to get things to work at random and I'm not having much luck.. so how do random events work? I want to click something and make it have a random chance of making an object appear.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jun 2009
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When clicking, you could set a counter/alterable value to a random value (for instance random(3) will return 0, 1, or 2) and after clicking, if that counter is equal to 1 --> create your random object and set the counter back to 0. Now your events are ready to accept another click and possibly create another random object. If you wanted your objects to appear in random locations, you could first create the object offscreen and then set its X and Y positions to random numbers within the boundaries that you want the object to appear. Such as Create Object at -50,-50 ---> set object's X position to random(300)+10 ---> set object's Y position to random(100)+10. Now it will look like the object randomly appeared somewhere on the screen between the areas defined by those values.

  3. #3
    Clicker 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)

    Join Date
    Dec 2014
    Location
    UK
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That seems to work fine, thanks for the help!

Similar Threads

  1. Right clicks with tablet pen registering as left clicks
    By FoursideVII in forum Fusion 2.5
    Replies: 3
    Last Post: 30th October 2016, 12:23 PM
  2. How to make enemies attack randomly like age of empires?
    By denis6555 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th May 2014, 01:09 AM
  3. Able to randomly make a character move towards player one?
    By koltzc in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 7th February 2013, 12:52 AM
  4. How to make an enemy appear randomly at locations?
    By Fr34kSh0w in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 19th April 2011, 04:03 AM
  5. How to make NPCs move randomly throughout a maze
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th September 2009, 11:59 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
  •