PDA

View Full Version : [AS3] Help with a flash game


pozqe
04-14-2009, 12:07 PM
Hi, we've got a problem with a game we're making at school. It's like the classic chopper game, just instead of walls we have moving enemies you'll have to dodge. We then hit a problem when we get to what the game will do if you actually crash into one of these moving spaceships.

It is then supposed to go to a frame which is frame number 5 in the main timeline. I've used trace commands to control that it is actually the command that sends us to frame number 5 which is the problem. I hope someone will help us with this problem and I've uploaded a .zip file which includes both the .fla file and the class which contains the commands for the enemy.

The main spaceship is called ROCKY
The enemy is called CHICKY

The problem is in the class file, I've marked it with commands.

ExNihilio
04-14-2009, 02:53 PM
It seems that your hittestobject is null which is rocky at that time.

Why didnt u write your code on entirely one class instead of writing it to frame 1.

This _root thing messes up i think.