Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Timer For Powerups in a game - Flash 5
From: Paul Steven
Date: Sun, 24 Sep 2000 20:22:36 +0100

Hi all

I am making a pacman game.

There are 4 special power ups that the "Pacman" can pick up. If he picks up
one of these powerups, then for a certain time say 5 seconds, all the
monsters become edible.

Ok - here comes the question

Right I guess I am going to have to create some function that starts a timer
and records the time when the timer is started. I then need to keep track of
this timer somehow, and turn it off after the 5 seconds has elapsed. In the
manual there seems to be loads of different date objects - is it one of
these I should be using or do I simply use getTimer(). Where is the best
place to check if the time limit has been reached.

The way I have structured the code is that the Pacman and the baddies have
all their code in an enterFrame clip event
and the game loops on one frame. There are a few functions I keep on the
main timeline that are called by Pacman and the baddies>

http://www.thegamesfactory.f2s.com/Biganimal/Pacman2_6.htm

Any suggestions?

Thanks

Paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]