paopei
1
:ninja: i have problem about hitTest method. i create a game and i wrote script as follow :
if(mymovieclip, hitTest(target)){
this.gotoAndStop(2);
//2 is frame that execute certain action or changing
}
but that script won’t work. but in this code (action of certain button) :
on(release){
mymovieclip.gotoAndStop(2);
}
and that works! is there somebody who can explain those problems.
thanks=)
system
2
this.gotoAndPlay(2);
Ask yourself: what does the this. refer to? And you’ll find your answer. Free… your… mind.
morpheus :asian:
system
3
*Originally posted by ilyaslamasse *
**
this.gotoAndPlay(2);
Ask yourself: what does the this. refer to? And you’ll find your answer. Free… your… mind.
morpheus :asian: **
i refer this to mymovieclip because the script is attached to mymovieclip.