User Tag List

Results 1 to 9 of 9

Thread: need help with picking an object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Apr 2009
    Location
    Florida
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need help with picking an object

    Ok after 2 hours of working on this.. i will bounce it off you all for some help.. cause i'm stuck.

    I have a frame where i have several active objects placed on it. I have them in an "enemies" group. Within the frame i also set some of them to use internal flag 99 on.
    all of this is basic stuff and working as intended.

    i have an event which u can see below:

    [img:left]http://www.dungeonlooter.com/ho/image1.jpg[/img]

    This event selects one of my enemy objects which also has flag 99 on, and the action it takes is to make that active object flash. Sounds easy enough and if i run the application as built, it does exactly that.


    here is what i am trying to add.
    i don't want the above condition to take place unless a button is clicked, see image below

    [img:left]http://www.dungeonlooter.com/ho/image2.jpg[/img]


    So it is the same event.. but i add the button component at the beginning.. and here is what happens..
    the flashing is working.. but it is making every object with flag 99 on flash not just the single selected one, like it does when i run the application with the "button" event omitted from the condition.

    how can this be, when the exact event will run cleanly and pick 1 object and make that 1 object flash without the "button" clicked in it?

    i can't seem to figure it out..
    i tried using a fast loop and calling it, i tried making it into a group event and calling it that way when the button is clicked.. but no luck.. I even made another active object and set en event for when the player clicks on that object to trigger the event.. just to see if it may have been something buggy with the built in button object..

    i can not get the condition to pick one of my enemeies with the flag 99 on and make it flash flash, when i add the button.. and i am stumped..

    advice?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with picking an object

    make the button trigger a value change (eg make a flag on the button go on) and test for that flag instead...

    If that doesn't work add an "Only one action when event loops"...

    And if that doesn't work I can't help ya. By the way objects only have 32 flags, starting at 0 (I believe).

  3. #3
    No Products Registered

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

    Re: need help with picking an object

    Yep there are only 32 flags available which means that flag 99 will also be the same flag as flas 67, 35, 3 etc

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Apr 2009
    Location
    Florida
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with picking an object

    ok tried to check on a flag-toggle but same results, it makes all objects with flag 99 flash not just one being selected.

    i already have an only 1 action in the event.

    i changed flag 99 to flag 9 to determine if i was somehow out of scope.. but still same results..

    if i let the event run as is, it will select 1 object and make it flash.. if i add any kind of check, be it a button click.. button flag change, and i tried a counter set to a particualr value.. it always selects all the objects with flag (now "9") flash..

    im still missing something,,,

  5. #5
    No Products Registered

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

    Re: need help with picking an object

    Try removing the only 1 action while event loops from the button click event. I think it has something to do with this as the button click event is only ever toggled if the button is pressed, so there is no need for this condition to be in there aswell.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Apr 2009
    Location
    Florida
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with picking an object

    ok removed the run this event once, and put the button click back in. as the first part of the condition.. save result..
    as soon as i click the button, it makes the 10 objects on the screen with flag9 on flash.

    i am wondering if it may have to do with the fact that i am doing the flag check on a group... and not an actual object...

  7. #7
    No Products Registered

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

    Re: need help with picking an object

    Hmm I doubt that as the group should check all object within that group anyway.
    To try to nut out the problem why dont you instead compare an Alterable Value instead of a flag such as Alt Value 0 = 1 instead of Flag 9 is ON.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Apr 2009
    Location
    Florida
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with picking an object

    ehh decided to do it a completely different way.. scrapped all the origional events and built something else that works.

    thanks for the help all.


  9. #9
    No Products Registered

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

    Re: need help with picking an object

    It would be good to find out what could be causing the problem though. If its a bug then we can at least tell Clickteam so they can fix it.

Similar Threads

  1. Picking more than one object at random?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th September 2010, 03:37 PM
  2. Object Picking Woes
    By MattEsch in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th April 2010, 10:38 PM
  3. Picking only one object during overlap
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th June 2007, 01:46 PM
  4. Object picking is still disfunctional...
    By Maggott in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 16th February 2007, 06:30 AM
  5. Need help with loops and object picking
    By Isbeorn in forum File Archive
    Replies: 8
    Last Post: 3rd September 2006, 05:17 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
  •