Hey, I’m pretty new to actionscript and so but I manage to read and understand and alter other people’s code a little. I’m testing functions to make myself a First Player Shooter game and now I have problem with the fire delay. I want a limit of let’s say 1 shot per second. How do I do that?
I thought that maybe restricting the clickings counted, so it doesn’t register the mouse clicks too close to eachother. Or put some kind of interval at the functions delaying the sound and event function, but that seems too hard.
So… any ideas?
And do you know any good help files for making this kind of game?
The game so far: http://w1.470.telia.com/~u47035396/flash/game/game.htm
As u see one get multiple sounds when clicking a lot and it’s possible to get several points by clicking the ball a lot.
Also, when the ball goes behind the tree it’s not supposed to be able to shoot.
The Flash File: http://w1.470.telia.com/~u47035396/flash/game/ball.fla
It’s not the exact same, some junk code trying to make the delay…
The file I used for help (if someone finds it useful for making a game of their own http://www.flashkit.com/movies/Games/Components/Simple_s-Stefan_B-1407/index.php
Here u see the target isn’t shot behind the pics. Is that because it is a button there and a mc in my file?
Thanks in advance