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 / Could someone help me with this code.

Author
Message
Robot Booger
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location:
Posted: 12th Jul 2005 05:36
I'm trying to make a simple math game where the problem falls from the screen and the player has to answer before it hits the ground.

Please help!

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 12th Jul 2005 07:37 Edited at: 12th Jul 2005 07:40
I have re-written your code for you the way that I would go about making a game.

You can see from my 'do-loop' that my main loop simply calls functions. I find it an easy way to work because you can see everything that the code needs to do within a loop and it is easy to see what to work on next.

It is perhaps not everyones favourite way to work but I find it much easier.

I have added a score system and a life remaining system to your code as well as a 'Game Over' message and the option to try again.

I have not put in any remarks to help you ... I thought you might like to work out what is happening on your own ... If you have any problems though please do not hesitate to ask and will help you.




Another idea would be to speed up the falling text evertime the user gets a question correct. Let me know if you need help with it


Robot Booger
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location:
Posted: 12th Jul 2005 08:24
Oh man !
Thank you so much scraggle!
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 12th Jul 2005 15:52
No problem ... glad I have helped


Robot Booger
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location:
Posted: 13th Jul 2005 11:28 Edited at: 13th Jul 2005 11:28
Booger
Robot Booger
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location:
Posted: 14th Jul 2005 08:01
Scraggle, or anyone else who wants to help, can you find out how to make the rocket ship blast off after the player types the correct answer?

Robot Booger
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location:
Posted: 14th Jul 2005 08:18
t
Robot Booger
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location:
Posted: 15th Jul 2005 10:25
I can't post my media. I don't know why
caleb870
19
Years of Service
User Offline
Joined: 13th Jul 2005
Location: LOOK! Over there!
Posted: 15th Jul 2005 12:19
Maybe because your going over the 1MB limit otherwise I have no suggestions.
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jul 2005 13:00
hmmm
maybe using the edit button would be nice

does it say document contaisn no data as i have been having that problem recently

maybe telling us what the error message says and we could better assist you

n00bs will be shot on spot...
It only gets more logical from here(sigh)

Login to post a reply

Server time is: 2024-11-27 22:37:52
Your offset time is: 2024-11-27 22:37:52