User Tag List

Results 1 to 3 of 3

Thread: Trouble checking a value in the same loop

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)

    Trouble checking a value in the same loop

    I'm having a problem understanding how Fusion deals with values and how to solve it:

    I can click on an object and pick it up. I then set a global value (ActiveA) to indicate what object I've picked up so that when I place it again I know what object to place there. The part I'm testing right here is if you picked up the object and want to place it right back down where you picked it up from.

    The code for picking up an object works 100% (step 1). But when I go to place the object (step 2), it does nothing. However, by eliminating my conditions one by one I could determine that it works when it doesn't have to check the value. When it has to check and agree the value it fails.

    Is it possible to change and then check a value in the same loop? If not, how does one code around this? Or am I just missing something basic being so new to Fusion?

    Code for step 1:
    If User left clicks on object
    + ActiveA=0
    + only one action when event loops
    Then
    ActiveA =1
    Delete object clicked on and replace with another
    Create an object at the cursor to indicate what object I'm holding

    Code for step 2:
    If User left clicks on object
    + ActiveA =1
    + Cursor Angle = Marker Angle
    + only one action when event loops
    Then
    ActiveA = 0
    Delete object clicked on and replace with another
    Delete the cursor object

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Can you explain a little better what you want to do I am a bit confused on what step 2 is doing.
    Do you want it to happen under the same click or is this a new click?

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    Step 2 is a new click.

    After I picked up the object in step 1 I placed a marker / place-holder in its place so that the person could place an object there again.

    Step 2 I'm clicking on THAT marker to place an object which can be the same one or a different one, that is why I need the value, to know what object to place on the marker.

Similar Threads

  1. Terminate fast loop mid-loop
    By JDWB in forum Fusion 2.5
    Replies: 8
    Last Post: 2nd November 2014, 04:14 PM
  2. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  3. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  4. Picking Single Objects and Fast Loop Trouble
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th September 2009, 01:25 AM
  5. Start loop "loop" 'Alterable Value A' times
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th May 2009, 07:26 AM

Posting Permissions

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