-
Underdog to the Babes Coven
Help - ActionScripting
Me again,
Tried every possible combination but the right one for this. Basically, whenever the specified player called "hacker" MC object touches the MC called "laser", it should bring a new MC to the middle of the screen. This is done using the function "hack".
Here's the script for the Laser:
onClipEvent (load) {
if (this.hitTest( _root.hacker ) ){
hack();
}
}
Here's the script for the function:
onClipEvent (load) {
function hack(){
this._x=117;
this._y=68.5;
this.gotoAndStop(1);
}
}
Problem is, "hacker" can run over "laser" repeatedly without the function going on.
Anyone help?
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
|