User Tag List

Results 1 to 7 of 7

Thread: Random object placements?

  1. #1
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random object placements?

    Hi.

    Ok, i have done my map for my game and i am ready to place the objects which the player will pick up. The problem is that these objects needs to be placed at random points around the map each time the game is started.

    So my question is, how do you do it so that objects are placed randomly around the map?

    Examples welcome.

    Many Thanks

    Tony.

  2. #2
    Clicker Multimedia Fusion 2Install Creator Pro
    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
    Jan 2010
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object placements?

    That depends. Do you want certain constraints on where they can be placed, and if so, what are these? eg: Within a certain area, in a random spot out of a set of predefined possibilities, anywhere within the frame, aligned to a grid (eg: they can appear only at 0,0 32,0 64,0 etc)...?

  3. #3
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object placements?

    Hi Namida.

    Thank you for your reply. I need random spot out of a set of predefined possibilities for each object to be placed on the map each time the game starts. I haven't worked out how many locations for each object yet.

    There are about 10 objects.

    Many Thanks

    Worf

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

    Re: Random object placements?

    Put the objects into a qualifier and then add as many pre defined position objects as you like. Then just do start of frame: Set position of qualifier group to position of pre defined spot. MMF2 will automatically do the random positioning for you.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object placements?

    Hi LB.

    Thank you for your reply. Are there any examples on this as i am new to MMF2 and all what i have done so far is through the help of examples.

    Many Thanks

    Worf

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

    Re: Random object placements?

    Well, an example reeealy is not needed at all here. All it is is one event...

    Add the objects to a qualifier. This can be done in the objects' properties.

    Place the defined position objects where you want the objects in the qualifier to appear at.

    When you have obejcts that you want to move to a random location, eg after creating some, just Set the Position of the Qualifier in the event editor to the position of the pre-defined creation spots you made.

    MMF2 will spread the objects out for you and do the random positioning for you.
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random object placements?

    Thank you LB will give it a try.

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. Txt string placements
    By Jafa in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 10th December 2010, 08:14 PM
  3. Random object help
    By den333 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 4th March 2010, 11:57 AM
  4. Random object spawning?
    By Zambaku in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 25th July 2009, 04:35 PM
  5. Enemy placements and spawning in a shooter?
    By CKX in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 19th February 2009, 02:39 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
  •