User Tag List

Results 1 to 4 of 4

Thread: Help with random spawning (among established Spawn Points)

  1. #1
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with random spawning (among established Spawn Points)

    Howdy! So, I'm still working on this horror game of mine.
    I laid out about 20 collectible objects throughout the map. (see these as Slender Pages)
    What I want is for 10/20 of these to spawn. Which objects spawn would be random.
    But 10 would always spawn. No more, no less.

    If anyone can help with this, it'll be much appreciated!

    For example:
    In "Slender: The Eight Pages", there are 8 pages scattered throughout the map.
    There are 10 landmarks, each one with a potential spawn. At the beginning of the game,
    8/10 of them are randomly chosen to spawn, and the other two left out.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,345
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    What you can do is give the objects the same qualifier and at start of frame destroy 10 of the objects, so that it seems that it spawned the other 10 objects.

    * Start of frame

    - Start loop "Destroy Object" 10 times

    * On loop "Destroy Object"
    + Pick one of "Group.1"
    - Group.1: Destroy

  3. #3
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot! Busy atm, I'll let you know how it goes. ^_^

  4. #4
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Popcorn This worked great! It took me quite a while to figure out, being new and all, but the finished project is just fine!
    10/20 of them spawn every time, never more, never less. There is also such a nice variety, so it's definitely being randomized!
    Thank you very much, these skills will be crucial for many projects in the future.

Similar Threads

  1. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 03:33 AM
  2. Mario ghost random random spawn
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 30th May 2014, 06:48 PM
  3. Random object spawning random y set x
    By Armiferamortalis in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd December 2013, 11:47 AM
  4. How to spawn random enemys?
    By UnicornMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th September 2013, 03:54 AM
  5. Random spawning example
    By happygreenfrog in forum File Archive
    Replies: 3
    Last Post: 6th May 2012, 03:03 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •