User Tag List

Results 1 to 4 of 4

Thread: Random object generator

  1. #1
    No Products Registered

    Join Date
    Feb 2008
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random object generator

    I want an object to be generated at a random time between 1 and 10 seconds. How do I do this? How would I do this if I wanted to generate an object many times, each one appearing 1-10 seconds after the previous one?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object generator

    Use Mersenne Twister Object (called MT random Object in the Object list) and two counters.

    Then take your mainloop speed into account. It is 50 by default. So every second is 50 mainloops.

    Initially set the first counter to random 50+450

    Always -> add 1 to second counter

    Second counter is equal first counter -> set first counter to random 50+450, set second counter to 0, and finally create your needed object.

    And on it goes. Hope that's what you are looking for


  3. #3
    No Products Registered

    Join Date
    Feb 2008
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object generator

    I looked for the MT Random object, but couldn't find it. I have MMF2, so is it MMF2 developer exclusive?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object generator

    Isn't it part of some of the bonus packs? Anyway, you can also download it here: http://ext.neatwares.ath.cx/ext/Mersenne_Twister

Similar Threads

  1. Random Number generator
    By RoachLIVEinLA in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 22nd July 2009, 02:16 PM
  2. Random Map Generator?
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 37
    Last Post: 6th July 2008, 02:58 PM
  3. Random Dungeon generator?
    By Jacob in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 17th May 2008, 12:52 AM
  4. Random Terrain Generator
    By Brandon in forum File Archive
    Replies: 3
    Last Post: 1st January 2007, 09:52 AM
  5. Possible bug with random number generator
    By MJK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th November 2006, 06:27 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
  •