User Tag List

Results 1 to 9 of 9

Thread: Random Spawning After Destruction?

  1. #1
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random Spawning After Destruction?

    Hi, forums. I am new to MMF2, via a school assignment I have to do. My game concept is that there is a square up on a wall, shooing other squares with arrows. But, I want the squares to, after getting hit with an arrow, spawn in a random location off-screen. Does anyone know how to do this?

    Thanks,
    ~Bittergamer1886

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I can make you an example if you want. I'll leave some of the work for you to do, my example will only show you how to do the spawning in a random location off-screen. EDIT: Here is the example.

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Does it have to be a random side of the screen as well, or can it just be random position off one side of the screen?
    Working as fast as I can on Fusion 3

  4. #4
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Happy Green Frog, thanks for the example, but what do I have to alter to make it spawn off the right side of the screen, and occasionally the left?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I've updated the example. Link

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Obviously, I have nothing better to do with my time.

    I hope you get an A+
    Attached files Attached files

  7. #7
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! ^.^

  8. #8
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, I got it, now. I appreciate the different way you try to teach me this, but I kinda wish you told me how to do this (I had an especially hard time finding "Only one when action loops." Hey, I'm very new to this, and programming in general.) The only issue now is that the enemy spawns a bit too far out of the way and misses the wall they are attacking. However, I'm not losing sleep over that. Your help was greatly appreciated. Thanks.

  9. #9
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Work in Progress

    Okay, this is what I have so far. (Please note that it is very amateurish.)

    What I intend to add:

    Diamonds that the enemies drop. This counts as points and currency. You have to climb off the wall and into the field to get them.

    An in-game store (Buys turrets, heatlh, etc.)

    Multiple enemy types (Fast ones, Stronger Ones, ones that shoot back, one that attacks from behind if you are off the wall for too long.)

    Spacing out their spawning positions, making them more level with the wall.

    Adjusting enemy speeds.

    Any other updates will be posted.
    Attached files Attached files

Similar Threads

  1. 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
  2. Spawning Random Objects
    By Stu in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 29th October 2012, 05:31 AM
  3. Random spawning example
    By happygreenfrog in forum File Archive
    Replies: 3
    Last Post: 6th May 2012, 03:03 PM
  4. random placement, collision + destruction
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th March 2012, 05:07 AM
  5. Random object spawning?
    By Zambaku in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 25th July 2009, 04:35 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
  •