3 Replies Latest reply on Mar 13, 2011 3:43 PM by kglad

    Problem with ActionScript


      I've been having a problem with my actionscript for a game im working on. I need it to fire if the player is visible, unfortunately it fires whether the player is visible or not and turns the player visible when it's not supposed to be. Could someone please explain what I've done wrong or help me correct my script?


      if (_root.playerleft._visible = true && Key.isDown(83)) {


        var bulletleft = _root.attachMovie("BulletLeft" , "BulletLeft" + _root.getNextHighestDepth(), _root.getNextHighestDepth());


        bulletleft._y = _y;


        bulletleft._x = _x-25;