Hey, i havent really been working with Flash for quite some time, so i decided to sit down and do a little hitTest.
The code i have problems with is:
onClipEvent(enterFrame){
if (this.hitTest(_root.player.player_hitbox )) {
_root.enemy.gotoAndPlay(14);
}
}
So, im just wondering what the problem might be?
Inside the player MC i have another MC instanced as "player_hitbox", and this code is in a hitbox instanced as "enemy_hitbox". What is want is pretty clear, when the enemy_hitbox collides with the enemy's hitbox, i want the enemy to gotoAndPlay(14).
All the instances names are correct (i've checked and doublechecked), i've also made sure that the hitboxes accually DO collide, and i havent found anything wrong. Im sure it's a pretty simple problem, with a simple solution!
Thanks in advance,
// Andrease
PS. (Love me because im an 02'er).