User Tag List

Results 1 to 4 of 4

Thread: Help with create objects in random position except a zone

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with create objects in random position except a zone

    Hi i'm trying to do this:

    Create from 6 to 20 objects random, then if objects that were created are overlaping backdroop or another object get destroyed call the loop again until I have the desired items on map. I have this but not working

    +Start frame
    -Start loop "createResources" random(6,20) times

    +On loop "createResources"
    -create object (resource) at 0,0
    -set x position random(95,3400)
    -set y positon random(95,3400)

    +(resource) is overlaping backdrop
    +(resource) is overlaping (resource)
    -destroy
    -Start loop "createResources" 1 time

    Seems like if 2 or 3 items are overlaping backdroop or a resource item at the same time it only calls the loop 1 time aswell, that's the problem

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Try replacing the bottom event with

    On loop "createResources"
    +Resource is overlapping backdrop
    +Resource is overlapping Resource
    +Pick one of Resource
    -Set x position Random(95,3400)
    -Set y position Random(95,3400)

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by danworth View Post
    Try replacing the bottom event with

    On loop "createResources"
    +Resource is overlapping backdrop
    +Resource is overlapping Resource
    +Pick one of Resource
    -Set x position Random(95,3400)
    -Set y position Random(95,3400)
    Thanks it works, but how fusion knows wich object to pick? if it's one at random?

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    It is one at random.

Similar Threads

  1. Create objects at random without overlap - Example
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 11th June 2015, 03:32 PM
  2. Create object at random position issue
    By MetaOsten in forum Fusion 2.5
    Replies: 4
    Last Post: 7th March 2015, 09:46 AM
  3. Create random objects
    By Captain_Harris in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th August 2012, 06:28 PM
  4. Can't create more than 9 objects when pressing a keyboard key at mouse position
    By Villmaxie in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 3rd April 2012, 10:00 AM
  5. [Bug] Move objects via the Position/Zone parameter
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th August 2007, 02:03 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
  •