User Tag List

Results 1 to 6 of 6

Thread: Testing all objects in same direction?

  1. #1
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Testing all objects in same direction?

    Hey I was wondering if it was possible to test if all objects were facing a certain direction. All the objects are on a static grid, so I've tried to do a bunch of selective choice events but none of them seem to be doing the trick. Is there an extension or something out there that can cure my woes? Or maybe I'm just missing a trick.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing all objects in same direction?

    If it doesn't let you select the object by using the objects direction, try this:

    1:
    Instead of changing the objects direction, change an alterable value between 0 and 31.

    2:
    Always: Set direction to the alterable value

    3:
    Search for all objects with the specific alterable value instead of the direction you want.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Testing all objects in same direction?

    Can you please be a little more specific about what you want.
    .:::.Joshtek.:::.

  4. #4
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing all objects in same direction?

    There's a grid of the same active object, whose direction gets changed pretty regularly. To solve the puzzle, they all need to be in the same direction. Currently, at least to my knowledge there's no way to do like an "all objects of x type are y" event.

    The alternative value idea might work (if each active of the same type actually has its own alternate variables, which i don't think it does), but there's still no way to test to see all if they work. I tried using a counter and if it reached a certain level it finished, but multiple tiles are flipped over simulatiously and again no way to check that without more events and frustration, so I figured I'd ask here first before partaking on that challenge.

  5. #5
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing all objects in same direction?

    Actually I just figured a way to get around it. Created an object on it when clicked, and when two overlapped they were destroyed. Effectively a giant direction counter

    Thanks for the help though, you can lock this or whatever.

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing all objects in same direction?

    If I understand you correctly, what you want is to know when every object of type A is facing in the same specific direction. When that is true, the puzzle is complete.
    If that's correct then what you can do is instead of seeing if they are facing the correct direction, check to see if any are facing in the wrong direction.
    You could do:
    (have a global string to record if the puzzle is completed)

    // first set the global string to true
    * always
    = set Global String IsPuzzleComplete to "true"

    // then if any object is not facing in the correct direction set the global string to false
    * Object A is not facing in direction X
    = Set Global String IsPuzzleComplete to "false"

    // if global string is still true by this event then they are all facing in the right direction and the puzzle is complete
    * Global String IsPuzzleComplete = "true"
    = Jump to puzzle complete screen or next puzzle or what ever

    Haven't tried it but that should work depending on how you've got your game set up

    TreeHugger

Similar Threads

  1. Unable to set an objects direction
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 1st July 2012, 04:07 AM
  2. best way of comparing values and testing overlapping objects?
    By brawltaunts22 in forum Multimedia Fusion 2 - Technical Support
    Replies: 44
    Last Post: 6th May 2012, 05:32 PM
  3. Testing Position of Objects Using X and Y
    By Ryan9171 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th March 2012, 06:18 PM
  4. Testing for Number of Objects in a Line
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd January 2012, 03:33 AM
  5. Testing Resizing Objects as Windows Changes
    By droberson in forum File Archive
    Replies: 2
    Last Post: 28th August 2008, 11:37 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
  •