User Tag List

Results 1 to 8 of 8

Thread: A little help here?

  1. #1
    Clicker Fusion 2.5
    NightSwordTaz's Avatar
    Join Date
    Nov 2015
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A little help here?

    Hi there, I'm having a little bit of a problem- I'd like to use qualifiers in behaviors, but for whatever reason I can't seem to get that working. Can someone please lend me a hand? It'd be greatly appreciated.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Unfortunately you can't use qualifiers in behaviours, nor in global events.

    This would be a much needed feature, btw

    A workaround is using a single object where you would use a qualifier,
    setting its animations to reflect multiple objects,
    using its values/strings to split it in "groups"

    But this is in no way as handy as a qualifier, imo

  3. #3
    Clicker Fusion 2.5
    NightSwordTaz's Avatar
    Join Date
    Nov 2015
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What a shame. Thank you for your help, regardless~

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    jn2002dk's Avatar
    Join Date
    Mar 2014
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What schrodinger said is correct, sadly there is no way to use qualifiers in behaviors

    Another workaround is use an alterable value or string which is set to true or false in frame event when ever you'd like to use a qualifier in the behavior

    For example, if you'd like to use qualifiers for collisions you would do

    Code:
    Object collides with qualifier
          Set Alterable String A = true
    Then you simply use the Alterable String A to check for collisions in your behavior instead

    It's a bit clunky and having qualifiers in behaviors would be fantastic but it's a decent workaround

  5. #5
    Clicker Multimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then you simply use the Alterable String A to check for collisions in your behavior instead

    Gonna be careful correcting people in the sleepy state I am now, but is this not just a hard workaround for checking the collision on the actual object in the first place? I mean, since you cant check the Alterable String on a qualifier anyway, you would have to check the string of each single object. (I have never used strings, but I assume they work the same way as values :P)

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    jn2002dk's Avatar
    Join Date
    Mar 2014
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not exactly

    What i'm doing in the game i'm working on something like this

    95% of the code is kept in the behaviour of an object

    However, i need qualifiers because i'm adjusting various physics properties at runtime depending on what the object is colliding with and i have multiple obstacles which all belong to the same group such as grass, sand etc.

    So in the frame event i set a string depending on what group of qualifiers my object is overlapping. Then i adjust the various physics properties in the object behaviour depending on the value of the string

    So if the object is overlapping sand i set string = sand, if it's grass then string = grass etc

    Then i adjust the physics properties in the object behaviour depending on the value of the string

    String = sand then set friction 200, elasticity 5 etc
    String = grass then set friction 5, elasticity 30 etc

    Hope that makes sense

  7. #7
    Clicker Multimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ohh, you mean you handle the collision in the main frame editor to set the String, and then handle what happens in the behavior.. Thats actually a great idea Ill keep this in mind!

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    jn2002dk's Avatar
    Join Date
    Mar 2014
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Exactly

    While it would be awesome to have access to qualifiers inside behaviours this work around makes it relatively simple to use them anyway

Posting Permissions

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