1 Reply Latest reply on May 1, 2008 10:23 AM by clbeech

    Random moving objects

    Bajs0r Level 1
      Hi!

      This is example of what I have now: EXAMPLE
      Here you see, that those red things move from UP to bottom in two different ways (right, left) in 1280x1024 area.

      Now I need someone, to change the code, so those red thingys will move only one way (right) from bottom, to right-UP corner.

      With best regards,
      Joze


        • 1. Re: Random moving objects
          clbeech Level 3
          change the 'wind' factor here to only positive values:

          t.wind = Math.random()*(1.4*4);

          I also see some other trouble here - it appears that when an element reaches a border it is simply repositioned elsewhere - i would consider removing the clip and adding a new one to the top of the stage.