User Tag List

Results 1 to 8 of 8

Thread: Selecting an object without clicking on it

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    TheOriginator's Avatar
    Join Date
    Jul 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Selecting an object without clicking on it

    I have a card deck as one active object with Alt val spread through.
    I want to press a button and have one card with a specific alt value move only. At the moment all cards move.
    not sure how to phrase the event
    If clicks on button then move card Alt value=48 to x,y
    Thanks

  2. #2
    Clicker

    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,729
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    The Select Object Extension may help.

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

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    TheOriginator's Avatar
    Join Date
    Jul 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mmm. not available to me in iOS Exporter

  4. #4
    Clicker

    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,729
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Ah, sorry. I didn't know this was for iOS.

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

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    oruga's Avatar
    Join Date
    Feb 2012
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Replicated it and works fine here, if you used copy and paste in your code sometimes things get a bit messed up so I suggest you delete the condition and the event and insert it again. Should work.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    TheOriginator's Avatar
    Join Date
    Jul 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks oruga Can you enlighten me with your working code? i don't know how the event should reading the first place.
    To be clear say i have 10 cards in the frame all as a duplicated object with an alt value spread through 1-10.
    How do i press a button and just have say card with alt val=8 move. and the others stay put. I want to refer to it by its alt value.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    oruga's Avatar
    Join Date
    Feb 2012
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I know what the problem is.

    When you spread a value into an Alt Value, say Alt Value A= Fixed("active"), the number isn't a single digit, or easily predictable, neither is it ordered like 1 for the first object, 2 for the second, etc. It is a weird long number something like 65536, 131076, 196610, etc. So you gotta find what the spread values are first.

    I don't know how you are coding your game and if this is useful, but sometimes I use the x or y position of an object to differentiate it from the other duplicates instead of the spread value. At the start of the frame you can set one alt value to the starting x position of each object. In the frame editor you can easily tell what that number is. Like I said, may not work for certain games.

    So find out the spread values first and then just use the code you were using.
    +Alt.Val A("Active")= 33123 +button is clicked -> change Active position to 120,40 or whatever.

    I hope that was clear enough, else I'll upload an example later.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    TheOriginator's Avatar
    Join Date
    Jul 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face

    Thanks Oruga,
    I figured out a simple work around. I make a global value = alt val. of my card I want to move
    When I click on a button Activate a group
    Then I can call up If Alt Val = Global Value move to X,Y
    Seems to work OK - thanks for your help

Similar Threads

  1. Selecting last created Object
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 30th June 2012, 06:34 AM
  2. Selecting an Object by Alterable Value
    By matt_barr in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th October 2009, 02:39 PM
  3. Problems with Object selecting
    By TotallyTurton in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th February 2008, 10:25 AM
  4. clicking on object
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th December 2006, 12:00 AM
  5. selecting object
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th July 2006, 01:23 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
  •