View Full Version : helicopter game (onClipEvent)

03-26-2002, 08:33 PM
Hi everybody !

I'm still on my game, and I still got the following problem:

You have to fly with a helicopter. The mission is to save a guy and drop him over the hospital.
The player should not be able to land before having saved the guy.
In this case a message appears: "Save the person first"
This works in the first level, but in all the others nothing happens... !!!

I attached a demo.fla, this is just to show what's about...

Please have a look at it. It would be great if anyone finds the error !!!

Thanks a lot in advance and all the best


03-26-2002, 10:17 PM
well, I might be off base here, but it seems to me that you create the variable "allowedtoland" and set it to "false" in your startGame function.
During the first level "allowedtoland" becomes "true" once the guy is picked up...but then, when the next level starts you don't seem to reset "allowedtoland" back to "false".
Hence it is still "true" and there rests your problem.
You just need to add a bit of code to reset the variable back to "false" when you embark on a new level, I think.