User Tag List

Results 1 to 4 of 4

Thread: Destroy object when Alpha Coefficient is X

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Destroy object when Alpha Coefficient is X

    Hi all!
    I want an object to be destroyed if its Alpha-blending coeffcient is greater than 200. I have many instances of that object in my frame, and if I try to do it using "Compare 2 general values", it doesn't work properly, because (I think) the action "Destroy MyObject" does not refer to MyObject instance with Alpha-blending coefficient greater than 200.
    I would need a "Compare to Alpha-blending coefficient" event. Is it possible to what I want without it?
    Thank you in advanced for your help!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Destroy object when Alpha Coefficient is X

    The easiest way would be simply setting an alterable value to the alpha blending coefficient (Always). Then, compare to the alterable value, which will probably select the object...

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroy object when Alpha Coefficient is X

    You can't use "compare two general values" when you have multiple instances of an object - it will always only compare the value of the newest instance.

    You have to do what Looki suggested, which is to set an alterable value to the other variable, and then compare the alterable value.

    It's the same if you want to use a more complicated expression.
    For example, if you want to check if a specific instance is within a given distance of another object.
    You first set an alterable value to the distance, and then in another event, you compare that alterable value.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroy object when Alpha Coefficient is X

    Thank you both for your help, it works perfectly!
    This tecnique is very smart, I'll remember it for the future.

Similar Threads

  1. Feature Request: Alpha-blending coefficient
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th July 2013, 08:10 AM
  2. Help with Destroy Object
    By lucaoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th September 2011, 03:49 AM
  3. Blend Coefficient makes object disappear!!
    By Paul_Boland in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 1st September 2011, 04:06 PM
  4. Destroy Object..
    By MostDreaded in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 14th January 2011, 05:18 AM
  5. Blend coefficient of string object glitches
    By Nick in forum Hardware Accelerated Runtime
    Replies: 0
    Last Post: 10th April 2009, 05:30 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
  •