User Tag List

Results 1 to 6 of 6

Thread: Random Active Spawn in Random Location in Frame

  1. #1
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    Top_of_the_Temple's Avatar
    Join Date
    Oct 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Random Active Spawn in Random Location in Frame

    Hey Clickteam Community,

    I'm working on my first Roguelike game, and I need help: I'm making a space shooter, and I need to spawn a variable amount of asteroids within the frame, as well as a variable amount of enemies (different types as well). How do I spawn an Active in a random location within the boundaries of the frame?

    Thanks for the help.

  2. #2
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    Top_of_the_Temple's Avatar
    Join Date
    Oct 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first solution didn't work, but the second solution works perfectly! I don't know how you figured that out, but you have really helped me out.

    Here's the .MFA file if anyone gets stuck.

    Thanks Snail!

    Random Asteroid Spawn.mfa

  3. #3
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    Top_of_the_Temple's Avatar
    Join Date
    Oct 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the update Snail. I used a quick event to destroy any outside the frame.
    I have 1 quick question: What is the random phrase again? I need to spawn a random amount between 10-20, and I can't seem to word the random expression correctly.

  4. #4
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    Top_of_the_Temple's Avatar
    Join Date
    Oct 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And the updated expression works perfectly thanks!

  5. #5
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    Top_of_the_Temple's Avatar
    Join Date
    Oct 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Snail, the possibilities are literally endless now that I know how to use the Random function!

  6. #6
    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)

    Join Date
    Oct 2016
    Location
    JP ~ PB
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx for help

Similar Threads

  1. How to spawn random enemys?
    By UnicornMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th September 2013, 03:54 AM
  2. Random Speed + Ypos at random times
    By Keehan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th May 2011, 05:25 PM
  3. Objects in multimediafusion 2 random spawn issue
    By Krippa in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th March 2010, 01:55 PM
  4. Question on a controlled random star spawn
    By pyromane in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th September 2009, 08:02 AM
  5. Question for a random spawn!
    By pyromane in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th September 2009, 04:15 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
  •