Hi there
Recently, I’ve been rebuilding my whole game, replacing all vector graphics and more. I’m also making changes to the way I script: I’m trying to put all scripts onto frame 1, except stop()s in moviecilps.
So I’ll have to rebuild the engine that is used to duplicate and place missiles to my tank.
My original one looks like this:
if (Key.isDown (Key.SPACE)) {
_root.missile.duplicateMovieClip("missile"+i,i,{_x:_root.tank._x,_y:_root.tank._y,_rotation:_root.tank._rotation+_root.tank.turret._rotation})
}
Then codes are put onto the missile movieclip like this:
onClipEvent (enterFrame) {
if (_name != "missile") {
.
.
.
}
Just like that.
How am I going to do it effectively if I’m putting the two scripts into the same place: frame 1?