Hi guys! I need help from someone who knows how to use Adobe Flash - ActionScript 2.0 Help is needed primarily on: 1) How to create a timer 2) Re-ordering frames and displaying certain frames for a certain amount of time 3) How to add a 'score' and make it increase when an object is collected... You MUST have MSN If you know ActionScript 2.0 and are happy to help me then please add me on msn: THANKS [I'm from the UK by the way so times that we're online will vary of course...]
half the results go to some next pages :| I've tried google search but ain't found anything easy to understand or relevant
Ok, I'll help you with that just for fun, but let's do it 1 by 1. About the timer, what exactly do you want it to do?
thanks well I'm creating a game.. and I want the time to be displayed on the top of the screen (2nd scene). All I want is a timer. Want it to count down from 100 seconds and when it's at 50 seconds a 'sound' to play to warn that there is only 50 seconds left [will have to get that somehow] and when its at 0 seconds my third scene should display [the 'time's up - retry' scene which I've already got sorted]
There you go, file attached. It's a simple timer code, there is a sound embeded that plays at 50, and it should go to the next scene when at 0. Hope this helps.
hey. Its just what I wanted BUT when I add the code to the scene where the actual game-play is, it doesnt work. It just says '100' but doesnt do the countdown... this is my current code. I just placed the timer code under the 'onenterframe' function.... would appreciate your further help. Thanks in advance.
You can't put this code in an onEnterFrame event, onEnterFrame basically means "all the time" or "permanently", meaning that you keep resetting your counter to 100, 30times per second, that's why it's not moving, take the code out of the onEnterFrame function ;-)
^ thanks for that got it working also solved the problem of re-ordering frames and displaying them for x amount of seconds before moving onto the next scene. just the high score thing now...
need help on the following now.... did all the rest HOW DO I PAUSE A GAME ON BUTTON PRESS? [player will click 'options' button during the game play. This will pause the game and display the options menu; continue game, restart game...etc.] HOW DO I RESUME THE GAME TO WHERE IT LEFT OF FROM WHEN CLICK 'CONTINUE GAME' BUTTON? HOW DO I CLOSE THE .SWF FILE ON A BUTTON PRESS? i've trie window.close(); and the fscommand ("quit") thing but doesnt work :| help? please?