4 Replies Latest reply: Sep 12, 2012 5:28 AM by Shockeey RSS

    How can I make a wall in a game AS2

    Shockeey

      Earlier I've declarded my speed_var as 5 and allocated it a button so it moves at 5 pixles so in theory it should stop, have I written it wrong?

       

       

      player1_mc.onEnterFrame = function(){

       

      if (this.hitTest(wall1_mc)){

        trace(this.hitTest(wall1_mc));

        speed_var -5;

      }


      }