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.

Geek Culture / Commodore 64 text adventure problem

Author
Message
Commodore kid
18
Years of Service
User Offline
Joined: 3rd Jun 2006
Location: Staffordshire, England
Posted: 18th Jun 2006 13:05 Edited at: 18th Jun 2006 13:07
Right can anyone help me i am having problems making text adventures for the commodore 64 BASIC microcomputer. The computer keeps displaying syntax error.
Here is the code.


im sorry for the spamming i used to do i hope u can all find it in your harts to forgive me
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Jun 2006 13:23
the string is too long? try eliminating half of the slashes.

poke 53280,1 omg that was a long time ago

Kenjar
19
Years of Service
User Offline
Joined: 17th Jun 2005
Location: TGC
Posted: 18th Jun 2006 13:25
I dunno why, but every time I see the word poke, I instantly think, eye and sharp stick.

Your signature has been erased by a mod because it's larger than 600x120...
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Jun 2006 13:27
what about peek! ?

Commodore kid
18
Years of Service
User Offline
Joined: 3rd Jun 2006
Location: Staffordshire, England
Posted: 18th Jun 2006 16:45
The slashes are just there to represent text there nothing to do with the code.

try my computing forums at
http://computermouth.jconserv.net
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Jun 2006 17:10 Edited at: 18th Jun 2006 17:45
C64 doesn't allow multi-line statements like that - if I remember correctly you can only have 2 multi-lines, so if you cut it down to 2 lines, it will be fine.

I tried it myself, so I know I'm correct - but then again, I am most of the time anyway.

And why do print "" ? Your wasting memory - just use print

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Jun 2006 23:12
Just to blow my own trumpet, here's a couple of screenshots of my old games...

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.

Attachments

Login to view attachments
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Jun 2006 23:13
And again

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.

Attachments

Login to view attachments
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Jun 2006 23:18 Edited at: 18th Jun 2006 23:38
Also got an Acorn RISC PC version

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 19th Jun 2006 15:55 Edited at: 19th Jun 2006 15:58
How about a "goto" in that line of code?



I haven't tried C64 BASIC, but most are similar, it's worth a try.

[edit] Just noticed it says line 8, sorry about that. The other guys are right, the printed text is most likely too long. Try a string under 80 characters first.

Login to post a reply

Server time is: 2024-11-17 05:57:18
Your offset time is: 2024-11-17 05:57:18