3 Replies Latest reply on Oct 18, 2006 4:28 PM by kglad

    Moving Movie Clips back when they exit the frame

    FlashIsTheCoolest123 Level 1
      This was an assignment for my computer sciences class. We have to determine what is wrong with our "plain language" code to make a movie clip image thingy come back to the other side of the stage when it goes through the opposite side... so if it crossed the right border, how would I make come accros the left side again? Vice-Versa as well, and up and down. This is the code we were given to work with (500 px, 500 px) :

      if( _root.Thing._x > 500) THEN
      _root.Thing._x = 0;
      else(_root.Thing._x < 0) THEN
      _root.Thing._x = 500;

      Thanks for the help