Help me, removeMovieClip after hitTest
Page 1 of 1
Help me, removeMovieClip after hitTest
hey! i wish you can help me guys :S
i am trying to expand my horizonts in the game programming, and i thinked about a pluzzle game... i am using a drag function, so i made this: 2 MC with the same form, but the first is blue and the second is black. in the black one, i made a frame called "empty" and other frame called "full". the code is like this:
<code> onClipEvent(enterFrame){
if(this.hitTest(_root.black)){
_root.black.gotoAndPlay("full");
this.removeMovieClip;
}
}
</code>
that code goes on the blue MC. When it touches the black MC, the black MC changes, BUT the blue MC is the same, it doesnt dissapears... what is wrong? thanks!
sorry for my bad english ;D
i am trying to expand my horizonts in the game programming, and i thinked about a pluzzle game... i am using a drag function, so i made this: 2 MC with the same form, but the first is blue and the second is black. in the black one, i made a frame called "empty" and other frame called "full". the code is like this:
<code> onClipEvent(enterFrame){
if(this.hitTest(_root.black)){
_root.black.gotoAndPlay("full");
this.removeMovieClip;
}
}
</code>
that code goes on the blue MC. When it touches the black MC, the black MC changes, BUT the blue MC is the same, it doesnt dissapears... what is wrong? thanks!
sorry for my bad english ;D
avatarbobo- Admin
- Posts : 33
Join date : 2010-01-08
Age : 34
Location : Guatemala
Re: Help me, removeMovieClip after hitTest
its done, i forgot the () after the unloadMovie... thanks to newgrounds! xD i am going to the actionscript showcase and show you how to make a drag function
avatarbobo- Admin
- Posts : 33
Join date : 2010-01-08
Age : 34
Location : Guatemala
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum