User Tag List

Results 1 to 3 of 3

Thread: selecting an object within a fastloop

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    selecting an object within a fastloop

    I am trying to use a distance check within a fastloop as a means of selecting an object in a qualifier group. Basically, I do a distance check, then store the qualifier object's fixed value to a variable. Then I compare the variable to the fixed value of the qualifier object. The problem is that even though I have 2 different objects (belonging to the same qualifier) I can only seem to get one of them to make the distance check true. I am using the Adv. Direction object to do the chjeck. Any idea why this wouldn't work?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: selecting an object within a fastloop

    You need to spread id's to the objects and compare the id with the loopindex. You can check out my Fastloop tutorial to see examples of how it is done.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: selecting an object within a fastloop

    So, I do use fastloops (and I actually have read your tutorial ) but my problem is that I need to be able to retain the selection for other code down the line. The way my code works, I figure out which object the player has just grabbed (which is done through a distance check within a fastloop) and then store the object's fixed value within the player so all future actions by the player will affect that specific object only. I hope I'm making sense here.

    The problem seems to be that the distance check only works for one of the objects and not the other. I can't see why that would happen in my code, except that I am using qualifiers in the distance check.

    Any ideas?

    PS. And can someone explain why it is a bad idea to use fixed values to select a specific enemy?

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 without clicking on it
    By TheOriginator in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th March 2012, 08:58 AM
  3. 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
  4. Problems with Object selecting
    By TotallyTurton in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th February 2008, 10:25 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
  •