-
[F8] Vector vs Hittest
I'm making a "alien shooter" game where you shoot aliens with guns
But the bullet line (yellow line showing where bullet goes),when diagonal will attack the enemy even if its not actually going over the enemy.
My brother told me to use a vector but flash help isn't even giving me crap and hitTest is still screwing me over...
Could someone change this to a vector(?).
onClipEvent(enterFrame){
if (_root.player.body.hitTest(this.body)){
this.health=this.health-_root.damage
}
}
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|