Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-26-2002, 09:33 PM   #1
cuba
Registered User
 
Join Date: Mar 2002
Location: zurich, switzerland
Posts: 65
Default helicopter game (onClipEvent)

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

cuba
Attached Files
File Type: zip demo1.zip (9.6 KB, 223 views)
cuba is offline   Reply With Quote
Old 03-26-2002, 11:17 PM   #2
pinkaboo
power to the pinK
 
pinkaboo's Avatar
 
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
Send a message via ICQ to pinkaboo
Default

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.

:0)
pinkaboo is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Card Match Game, Colour Me In Pictures and Board Game Total Frigging ActionScript 2.0 4 02-21-2005 01:04 AM
Helicopter Game questions. beau ActionScript 2.0 13 12-13-2004 08:33 PM
word search game with AS2 black General Chat 5 08-12-2004 10:44 AM
[AS2] Tile game or not tile game? krolben Gaming and Game Development 4 07-28-2004 01:41 PM


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.