Hey all.... So i have a project due in for class VERY VERY soon and I know the code to this is very simple but i can't seem to figure it out -.-
What i want is when 'player_mc' touches 'hitbox_mc' the movieclip 'bat_mc' will play and when it reaches its last frame it will be erased off the stage. (bat_mc will be stuck on first frame until 'hitbox_mc' is touched... )
So pretty much when the character walks through an invisible box it activates a bat on the tree to fly away...
Also
I want something simular to the idea above, however when the character touches 'hitbox_mc' it will switch to 'room2' which is the next frame, here is the code so far
Code:
if(player_mc.hitTestPoint(hitbox_mc)){
gotoAndStop("room2");
}
However the code above is giving me these errors:
Code:
Scene 1, Layer 'Actions', Frame 1, Line 284
1067: Implicit coercion of a value of type flash.display:MovieClip to an unrelated type Number.
Scene 1, Layer 'Actions', Frame 1, Line 284
1136: Incorrect number of arguments. Expected 2.
I've attached a picture of what i'm trying to do..
Help would be appreciated!