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.

DarkBASIC Discussion / Maths Quiz

Author
Message
DarkSith
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 30th Jan 2003 14:06
I'm Back... Did anyone miss me?

RIght, I am creating a game for a school but could someone help me with getting the questions on top of the matrix, so then when the right answer is inputted, the object fires a missile, a bit like the Amiga Tanx game.
The Day of Judgement will scorch mankind and will be condemned to Hell.
Leade
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 1st Feb 2003 17:01
Set a value that stays equal to zero until the answer is correct then when the answer is other than zero it will execute the fire missile code.
DarkSith
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 3rd Feb 2003 15:32
Can you give me an example?
DarkSith

Dark Basic: My Favourite!
Leade
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 22nd Feb 2003 22:31
First of all i wanna ask a question
Is the question in an image and then place on to a matrix?
If so then you make a loop that can only be exited if a key or a correct string is entered.

Erm? Lets see now!



<Fire code for object goes here>

The loop checks the entry buffer if it contains the answer string, if the entry buffer is longer than the answer string then the buffer is cleared.

If the buffer is exactly the same as the answer then the loop is exited and the bullet can be fired.

Leade

Login to post a reply

Server time is: 2025-05-15 16:16:54
Your offset time is: 2025-05-15 16:16:54