11 Replies Latest reply on Dec 8, 2009 4:53 PM by kglad

    Loading something into a game.

    TheEricBraun

      Hey everybody. Ive been trying to load something into my game so that when i reach, lets say 1000 points another powerup comes into the game.

       

      I tried doing the opposite of Unloading something into the game which's actionscript is

       

      onClipEvent{

           if(_root.char.hitTest(this)){

           _root.char.speed=10;

           unloadMovie(this)

      }

      }

       

      Saying that when the char hits this, its speed increases then the powerup goes away. so it worked fine but i wanted to do something that made the powerup come into the game. The actionscript i tried is.

       

      onClipEvent{

           if(_root.score<=1000){

           loadMovie(this)

      }

      }

       

      i didnt give it anything specific to do once it was loaded. but i tried that and it said that it didnt work. i guess load movies and unload movies are totally different. But if anybody could please help me, it would be much appreciated. Thanks =).