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 / why does this not work?

Author
Message
ico2
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 18th Jan 2004 21:47
why does this code not work, i get the first input text displayed and then after i press return blank screen.

thanks
ico2
VishalC
21
Years of Service
User Offline
Joined: 14th Jan 2004
Location:
Posted: 18th Jan 2004 22:47
i think its because there are no sync commands. add the code
Sync On
Sync Rate 60
to the top of the code and the command
sync
to the bottom.
Hope it works. Good luck

If it wasn't for the last minute, nothing would get done!
Gumshoe
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 19th Jan 2004 03:38
also try use of floats instead like x# instead of just x
someone show this code to me and it help

input "Enter your savegame filename >",save$
open to write 1,save$ + ".sav"
write float 1,xposition#
write float 1,yposition#
close file 1

To load:

input "Enter your old savegame filename >",load$
open to read load$ + ".sav"
read float 1,xposition#
read float 1,yposition#
close file 1
paste sprite 1,xposition#,yposition#

yposition# and xposition# would be the variables for the sprite's position on the screen. Also, you can check the command glossary at: <http://www.realgametools.com/glossary>

Login to post a reply

Server time is: 2025-05-23 01:08:07
Your offset time is: 2025-05-23 01:08:07