onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
this._x -= 5;
if (_root.alien.hitTest(_root.barrier)) {
this._x += 5;
}
the alien moves about then whin it touches a barrier it should stop but why dousnt my code work?
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
this._x -= 5;
if (_root.alien.hitTest(_root.barrier)) {
this._x += 5;
}
the alien moves about then whin it touches a barrier it should stop but why dousnt my code work?
:: Copyright KIRUPA 2024 //--