Help me, removeMovieClip after hitTest

View previous topic View next topic Go down

Help me, removeMovieClip after hitTest

Post  avatarbobo on 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 : 26
Location : Guatemala

View user profile

Back to top Go down

Re: Help me, removeMovieClip after hitTest

Post  avatarbobo on 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 : 26
Location : Guatemala

View user profile

Back to top Go down

View previous topic View next topic Back to top


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