
Added by roScripts on August-25-2007, 4:23 pm
//place this code on the bullet
onClipEvent (load) {
this._visible = 0;
if (_root.fire == 1) {
this._x = _root.cannon._x;
this._y = _root.cannon._y;
}
}
onClipEvent (enterFrame) {
if (this != _level0.bullet) {
if (_root.fire == 1) {
this._y -= 5;
this._visible = 1;
}
if (this._y<0) {
this.removeMovieClip();
}
}
}
//place this code on the cannon
on (release) {
_root.fire = 1;
_root.i += 1;
duplicateMovieClip(_root.bullet, "bullet"+i, i);
}
//place this code on "Base"
//this clip is used to turn
//the cursur into the cannon
onClipEvent (load) {
this._visible = 0;
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cannon._x = _root._xmouse;
_root.cannon._y = _root._ymouse;
}
Added by roScripts on March-26-2008, 5:14 pm
Added by roScripts on March-26-2008, 5:13 pm
Added by roScripts on March-26-2008, 5:09 pm
Added by roScripts on March-26-2008, 5:08 pm
Added by roScripts on March-26-2008, 5:07 pm