Mini-Grounds
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help me, removeMovieClip after hitTest

Go down

Help me, removeMovieClip after hitTest Empty Help me, removeMovieClip after hitTest

Post  avatarbobo Sun Jan 17, 2010 12:40 pm

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

avatarbobo
Admin

Posts : 33
Join date : 2010-01-08
Age : 34
Location : Guatemala

Back to top Go down

Help me, removeMovieClip after hitTest Empty Re: Help me, removeMovieClip after hitTest

Post  avatarbobo Sun Jan 17, 2010 1:08 pm

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

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum