User Tag List

Results 1 to 5 of 5

Thread: loops? i son't understand....

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2006
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    loops? i son't understand....

    hi guys a simple thing i don't understand

    i've an object called image1
    when the frame starts it is invisible
    so

    1°row

    if image1 is invisible
    + press space

    make image1 visible

    2°row

    if image1 is visible
    + press space

    make image1 invisible

    it doesn't work
    i use only one action when event loops
    restricted action

    probabily it goes in conflict because there's one moment that all 2 condition are true

    some one may help me thks


  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: loops? i son't understand....

    That is because the events are read from top to bottom.
    First you tell it to be visible.

    Second, it tests if it is visible. It is, since you just made it so. So it sets it to invisible again.

    Instead you can do this:

    * Upon pressing space
    - Image1: toggle flag 0

    * Image1: flag 0 is off
    - Image1: set invisible

    * Image1: flag 0 is on
    - Image1: set invisible

  3. #3
    No Products Registered

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

    Re: loops? i son't understand....

    As popcorn said above, you are basically making it visible and then invisible again at the same time because it returns TRUE for the first event, and then TRUE again for the second event.
    Do what he suggested above and it should fix the problem. An annoying work around but unfortunately its the way the events work.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    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)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: loops? i son't understand....

    Think of flags like on/off swiches. or True False

  5. #5
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jul 2006
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loops? i son't understand....

    thks i'll try

Similar Threads

  1. Can't seem to understand the parallaxer object
    By Storsorgen in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 24th May 2012, 03:12 PM
  2. Struggling to understand...
    By Danny in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 30th October 2011, 12:15 AM
  3. Don't understand so I'll give it up
    By ineke in forum Android Export Module Version 2.0
    Replies: 6
    Last Post: 31st July 2011, 10:33 AM
  4. Don't understand help file!
    By alic in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 26th October 2009, 06:12 PM
  5. little confused abouts loops inside loops!
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th January 2007, 06: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
  •