Create objects at a random position a number amount of times

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • guten tag,

    so this might be a little hard to explain but basically im wondering how i can Generate an object at a random position a multiple number amount of time, basically multiple objects can Generate here and and there.

    is there a easy possible way to do this perhaps?

  • What you'll want to do is run a Fast Loop x number of times, once per object. So for instance if you want 100 objects, you'd run fast loop "makeObjects" 100 times.

    Then on the "makeObjects" loop, you'll run the Create function, and run the "Create Object at..." function, which will allow you to specify the X and Y coordinates. Set the X to a Random Range between like 0 and Frame Width, and the Y to a Random Range between 0 and Frame Height (should look like RRandom(0,Frame Width) and RRandom(0,FrameHeight)). Adjust as needed from there.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!