User Tag List

Results 1 to 6 of 6

Thread: Random object spawning?

  1. #1
    No Products Registered

    Join Date
    May 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random object spawning?

    Let's say that I have a selection of items:
    Sword
    Helmet
    Potion
    Food

    And I want one of them to be randomly picked and spawned at a specific place. How do I achieve that? I have the random counter but I don't know how to asign the items to the counter so that an object can be spawned =/

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object spawning?

    Put them in a list object and randomly pick one.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    May 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object spawning?

    I've never worked a list object - A little more explanation on what to do with it would be grand.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object spawning?

    OK, once you insert it, double click it to edit the data, just insert all the items you want in it and press i\enter to make a new item.

    Then, you can use compare two general valus under the Special Object, and compare
    List Line Text$( "Item List", value( "Random Counter" ))="Item you Want"
    and that should work. Also make sure in the list object properties that 1-based index is unchecked.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    May 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object spawning?

    Let's see if I get this right, Once I put in the name of the object I want in the list, i write in i/ and then press enter and do the same thing with the next textline?

    The rest I understood =)

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object spawning?

    Quote Originally Posted by Zambaku
    Let's see if I get this right, Once I put in the name of the object I want in the list, i write in i/ and then press enter and do the same thing with the next textline?

    The rest I understood =)
    What!? No don't write i/ or whatever, just ype it in the box like you want it to be in the list, the same way as you listed the items just now,
    item 1
    item 2
    randmom other item
    item 4
    ect...
    Working as fast as I can on Fusion 3

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. (mfa included) random spawning in would be dress-up game
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th July 2013, 03:41 PM
  3. Spawning Random Objects
    By Stu in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 29th October 2012, 05:31 AM
  4. Random spawning example
    By happygreenfrog in forum File Archive
    Replies: 3
    Last Post: 6th May 2012, 03:03 PM
  5. Random Spawning After Destruction?
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 1st May 2012, 05:06 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
  •