User Tag List

Results 1 to 7 of 7

Thread: Assign random created object to another created object

  1. #1
    No Products Registered

    Join Date
    Sep 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Assign random created object to another created object

    My game is creating an enemy every X second. At the same time I want to create a random object next to this newly spawned enemy (and follow it around).

    How is that doable? Maybe you can suggest some tutorials on this as I am quite new to MMF.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What is the X second?

  3. #3
    No Products Registered

    Join Date
    Sep 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm at my current setup it's every 13 seconds.

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wizlore View Post
    My game is creating an enemy every X second. At the same time I want to create a random object next to this newly spawned enemy (and follow it around).

    How is that doable? Maybe you can suggest some tutorials on this as I am quite new to MMF.
    Maybe use the bouncing ball movement for the random items, then after spawning an enemy:

    Always
    Random Item
    -Look at enemy

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if this is what you want,.but take a look at this mfa. Use the space bar to randomly create your object and use the arrow keys to move the character around. This is probably not what you're looking for,.but it's close.

    View MFA

  6. #6
    No Products Registered

    Join Date
    Sep 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the replies.. and Thesmanman your example is very fine... But I think I will still need to spread a value or something at the enemies, so only one random object gets assigned to one enemy. I just haven't figured that spread value part out yet.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You're welcome. You'll get it to work. Look on Marv's site. He has great examples and I'm sure you'll find something you can use!!

Similar Threads

  1. [BUG] Create object if flag is off, and assign something to the created object
    By Popcorn in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th January 2013, 11:01 PM
  2. Selecting last created Object
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 30th June 2012, 06:34 AM
  3. Random position a created object
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 29th June 2008, 11:08 AM
  4. Bug: Random objects created at 0,0 at start
    By dustingunn in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 16th March 2008, 12:13 PM
  5. Object created at runtime
    By Nick in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 26th May 2007, 02:18 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
  •