Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Countdown Code Problems

Author
Message
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 13th Apr 2007 11:38 Edited at: 13th Apr 2007 14:11
Well, currently i'm working on a Space Invaders type game, to test myself out on what i've learnt in DBP so far, and i've run into a problem. Basically, what I want it to do is when the user clicks the "New Game" button on the main menu, they're taken to the main game area, where the game is actually played. Then, when the player gets to the main area, a countdown starts, and a sound plays for each number of the countdown, so it goes:

3! (Play sound of voice saying 3)
2! (Play sound of voice saying 2)
1! (Play sound of voice saying 1)
Go! (Play sound of voice saying Go)

And when Go! is said, the game starts. I've gotten my code to go 3, 2, but it won't show the number 1 and it won't play the sound either. What's wrong? Attached is the media for the voices and below is my code.



All help is appreciated, thanks!


BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Apr 2007 13:03
I would code it slightly differently, based on real time...

Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 13th Apr 2007 14:12
Nice, that worked well, thanks a lot! Thanks for the quick reply also!


Login to post a reply

Server time is: 2024-11-25 20:40:37
Your offset time is: 2024-11-25 20:40:37