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 / Ok i am just starting :)

Author
Message
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 26th Apr 2004 05:55
okie... I know iam a noob...I hate that term but how do you keep the game when started from closing? sofar I have
ink 0x88FFFFFF,0
set text font "Tahoma"
set text size 32
center text screen width()/2,screen height()-50,"Oneka Productions presents a test!"
PRINT "Hello I am in the begining stages of making a game!"

A 1 man team
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Apr 2004 06:01
add WAIT KEY


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 26th Apr 2004 06:03
But iam trying to test to make a game like how would you do it to close if they press esc?

A 1 man team
Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 26th Apr 2004 06:27 Edited at: 26th Apr 2004 06:28
esc already closes games atomaticly unless you disable it. but if you want to make diferent keys do it. use keystate. then end, ends the program.

example:




or if you want it to be any key:



Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 26th Apr 2004 06:30
here are all the scancodes by the way:




CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Apr 2004 16:16
Oneka, based on your code wait key would be best. When you make a game that runs in a main loop, then you could incorporate what you mentioned like certain keys etc


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 27th Apr 2004 02:26


Just run this code, its what CR told you to do, and its the best way.

-Vash the Stampede

Need help? Ask me via email, msn, aim, or forums and Ill see what I can do.

Login to post a reply

Server time is: 2024-11-26 14:21:34
Your offset time is: 2024-11-26 14:21:34