User Tag List

Results 1 to 8 of 8

Thread: multiple objects

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    multiple objects

    I have a timer that spawns an enemy object every few seconds.

    In my game I need to kill these objects. When I shoot and kill an object and use destroy all the other objects get killed. How can I make each object individual.


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

    Re: multiple objects

    Spread Value will give you seperate ID's.

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

  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)

    Re: multiple objects

    You don't need spread values.

    Can you post your code in text form for detecting when to kill an enemy?
    Working as fast as I can on Fusion 3

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multiple objects

    I don't know how to copy and paste the code

    Just started working with MF in the last week.

    I have an event that fires an object towards the other objects that get created in a timer. So the objects that get created by the timer all look the same. When my bullet object hits any of these other objects a destroy is called which kills all the same objects instead of the one the bullet hit.

    I tried spread value but it did not work.



  5. #5
    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: multiple objects

    When I say in text format I mean you type it out manually, letter by letter. :p

    Could you upload an example to the File Archive forum? Not you're whole project, just an example where it destroys all enemies and not only the one that was hit. You can attach the MFA to your post using the File manager link underneath your posting box.
    Working as fast as I can on Fusion 3

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multiple objects

    okay, I uploaded the file

  7. #7
    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: multiple objects

    OK, I have looked at the file and I see what you are doing wrong. You are destroying ALL the spiders when a global value is at a certian number, which yo add to when you hit the spider. Instead, store this value in an alterable value of the spider things and use "Compare to Aletrable Value of Object" from the spider object. This way MMF2 will 'select' only the objects that meet the condition, and only perform actions (such as destroy) on the selected objects. If no objects were selectd by a condition, then by default all objects are selected.
    Working as fast as I can on Fusion 3

  8. #8
    No Products Registered

    Join Date
    Sep 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multiple objects

    You are right :grin: and it is working now.

    Thank you

Similar Threads

  1. Help w/ multiple objects?
    By camelman in forum File Archive
    Replies: 7
    Last Post: 10th March 2009, 04:42 PM
  2. Multiple PMOs for multiple Objects
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 31st May 2008, 01:49 AM
  3. Multiple PMOs for multiple Objects example
    By Blood_Wist in forum File Archive
    Replies: 1
    Last Post: 31st May 2008, 01:48 AM
  4. Sum (multiple alt values, multiple objects)
    By Melvin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th April 2007, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •