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

    How can I make a wall in a game AS2


      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)){


        speed_var -5;