-
problems with two "on" statements
What would I do if I wanted to combine two on statements?
I want to combine an enterFrame with an on(press) statement.
I'm creating a shooting game and am having trouble with adding a recoil effect to the scope movie clip.
Here's what I have so far:
onClipEvent(enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
}
on(press) {
gotoAndPlay("recoil");
}
the recoil effect works, but the on(press) action for the enemies are negated.
Each enemy has a...
on(press) {
this.gotoAndPlay(2);
}
action for their death.
How can I make it so both actions work?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|