User Tag List

Results 1 to 5 of 5

Thread: A problem using IDs

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A problem using IDs

    Hiya, It's me again, with another stupid problem
    Basically, I have an enemy composed of two razor blades and a ghost thing. I have been trying to use the "spread value" feature to have a ghost-thing's blades destroy along with it, but it's clearly not working: All blades are destroyed with the death of just one ghost-thing.

    Here's the link:
    http://www.mediafire.com/file/uzwnmvgz4zl/pblade test.mfa
    arrow keys to move, a(hold),s, and d are the weapons.

  2. #2
    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: A problem using IDs

    Mediafire hates my computer, so I cant download, but, from what I hear, this is what I think:

    Spread value in the enemies, and when you create thier weaopn, set it to thier spread value. Then on enemy destroy event, make it select all weapons with the ID of the enemy and destroy them.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A problem using IDs

    Well after looking at your example its pretty obvious why its not working.
    You have the event (number 11 and 12) where you test if health < 0.
    You are testing if 'active 37' (the big spinning wheel thing) has no health and you destroy active 38 instead of 37. You are also have it the other way around for the other active.
    So you are basically destroying the wrong active...

    This is why you should rename all your objects to something you can recognise, and change the icon to something unique for each object. Oh and use comments, lots of them. They will help you in the future and make you a better programmer.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A problem using IDs

    Hah! I can't believe I missed that! But so, anyhow, I was using the "spread value" function and IDs correctly, right?

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A problem using IDs

    Yep. Spread values are useful for a number of things including that.

Similar Threads

  1. Pulling Problem and Shooting Problem
    By Duggabboo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st March 2010, 05:24 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
  •