954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Unknown Problems

:@Hi i am currenty working on a basket ball game in one of my grade 11 classes. My teacher and I cannot find a way to make the exit code work even when the shot is being taken. Also to take a shot you have to hit shoot in a command box. When the program is running if you keep clicking shoot the program will continue running for the number of clicks made, even tho i have used the enable code and i move the button after the click.
if you could please help me out i would be very happy.
If you need me to send the code there is alot but i would be more than happy.

2thestart
Newbie Poster
13 posts since May 2007
Reputation Points: 10
Solved Threads: 1
 

i think you should put doevents in the SHOOT codes... so you could exit anytime u want.. and about the clicking of shoot.. try to declace a global variable that will tell you the status of your game.. ex. if you click shoot the status is Shooting... so you can filter now the click event with that variable..
try the code..
if bstatus = shooting then exit sub

i hope i ve help you..

vbCNEW
Light Poster
44 posts since Apr 2007
Reputation Points: 10
Solved Threads: 3
 

Thank you

2thestart
Newbie Poster
13 posts since May 2007
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You