Question
Problems with Load Movie
Hello! I am a flash newbie who is making his first game. I
would like to load a movie clip called 'ship' when the ground
called "mainGround" is duplicated 7 times. Also I would like the
ground to stop scrolling at this point, There is a "ground" mc
inside mainGround. Here is the code:
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = ground._x+ground._width;
groundStartx = this._x;
groundSpeed=10;
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart){
this._x-=groundSpeed;
if (this._x<= (groundStartx-ground._width)){
this._x=groundStartx-groundSpeed;
}
}
}
Thanks to all of you! (I realize this must be a stupid question but everyone has to start, right?)
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = ground._x+ground._width;
groundStartx = this._x;
groundSpeed=10;
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart){
this._x-=groundSpeed;
if (this._x<= (groundStartx-ground._width)){
this._x=groundStartx-groundSpeed;
}
}
}
Thanks to all of you! (I realize this must be a stupid question but everyone has to start, right?)