cannot maintain variables in the subs

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Never minde my last two replies,

Well, I shrunk my image to 80*73, as a 3KB .jpg file (note: same image as a .gif file will be 20KB for some reason...) and I Uploaded it to this site...*sigh*.

You like it? :D

It was the best image I could come up with (had to scan and gut).
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:) , got some red eye, creepy, but interesting.. lol.. yeah its cool, full face shot be interesting too.. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Guest

Post by Guest »

Well I had no full face shot to work with.

The red eye is supposed to be there because the guy gots red eyes. :)
The guy's supposed to have blue skin but it came out sorta blueish gray...

Well were up to 5 pages!!! Woo! :D Lets see how far we can go.

If you have any ideas for my SW game just let me know, also if you need any help, or testing on your game just let me know. :wink:

Ummm...Does Rudy have any meaning to you? Just an idea...
Guest

Post by Guest »

BTW that was me again....I forgot to log back in.... oh well
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

hmmm...I seem to be having a login problem well 3rd times a charm...
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:wink: Yeah, I was joking bout the red eye.. lol

Log in probs? The next time you log in, check the Auto loggin box :) .

:wink: , As for the test play, I'm going to convert my files over to QB4.5, and break apart my code, and work in your mouse controll,. then test play meself, then release a demo, then maybe try to hold a poll or something, lol.. hehe!! :D

Huray! I got some ppl besides me to put in my credits (that scroll to, mind, lol)
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

He..LOL :lol:

OF COURSE you should test it yourself... :P

But sometimes its good to have an outsider's oppinion of the program to make any suggestions, or to locate any errors hence beta versions and the career of game testing...LOL
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Yeah, lol, I said I'll release a demo,. I'll send you one direct also.. :wink: , lol,. then put up a poll,. hehe!! lol :D
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Ok got it.

I'll also be sending a Beta Version w/poll for my program (which its still a secrete)

Speaking of which I've gotta go and sit down at my computer... :shock: ...wait! thats what I'm doing now...and just sick myself on my program. :D

>>>>> :D Mit's Tip of the Post :D >>>>>
>Tip #2:
>>>ESC returns CHR$(27) to INKEY$
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

PRINT " :D , yep, lol,.. wish you luck on your program, whatever it may be.."

SLEEP

See Z!re, I know bout FreeBasic,.. lol :D

PS: I edited this if my next post doesn't make since,. lol,. :wink:
Last edited by Rattrapmax6 on Mon Jan 24, 2005 6:23 pm, edited 2 times in total.
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Ummm...Isn't PRINT and SLEEP also valid QB code too?
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Oh, I forgot, its like this...

PRINT " Hello, world!!"

SLEEP

Colorful aye..

or to scroll up the screen!!...

LOCATE 22, 1
PRINT " Hello, world!! I'm going up!!"
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT
SLEEP 700
PRINT

SLEEP

:lol: And there you go! FreeBasic!!!! :wink: at its standered color scheme, has a few, like the Matrix, 8) .... hehe!!
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

As you would say, Aye.
Most languages now a days have a color scheme like that.

In fact if Microsoft did a Windows version of QB then it would be like that (Not same as Visual basic). Or mabey Linux....

No excuse me I have some coding to do...

Oh yeah....a tip...hmmm....
>>>> :D Mit's Tip of the Post :D <<<<
>Tip #4:
>>>If you want to learn something new look into the tutorials of this site...it has a wide range and take the time to LEARN it, the authors did write them for you ya know!
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Aye, but MS didn't make a windows version of QB, making FB the on QB-like language with this color scheme! lol :wink: Besides, I never seen any other programming laguage other than QB.. oh well,. lol,.

Besides, If I was making this up, I'd made the text black like in my first post,( b4 I edited it), not red,. :) The one above, If you typed that code, would look exactly the same color with the FBide,. you did notice its..

Code: Select all

SLEEP 700
and not..

Code: Select all

SLEEP 1
like I would normaly put in QB, you'll be there awhile in QB if you use 700,. but if you use 1 in FB, you'd nver c what happend.. lol,.. its miliseconds or somthing in FB... 8) :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

I seriously HATE the SLEEP command!!!!!!!

You see it waits until the timer runs out, OR a key is pressed, OR an event is triggered.

To me thats Blah! :x

I would never use that! Its like a Inkey$ but has a specified time for input.

But I do like the timer runs out thing :). I hate pause FOR loops too.
But a better way to do that is to look at the time tutorial. :) .

No tip for now.
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Um,. at the end of a FB prog, you have to put "SLEEP", or:

DO
press$ = INKEY$
LOOP UNTIL press$ <> " "

Other wise, you'll never see what the prog did,. :) it automatily quits like..
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Yes so did C++, However in that you should use it and I would, but I never used FB.

In C++ you have to put system("PAUSE");
I believe.
An equivalant code would be:

PRINT "PRESS ANY KEY TO CONTINUE..."
DO : LOOP WHILE INKEY$ = ""

>>> :D Mit's Tip of the Post :D <<<
>Tip#5:
>>In QB you can simplify just waiting for any keystroke by using DO : LOOP WHILE INKEY$ = "". Or simplier INPUT(1).
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:D FreeBasic is sweet, you need to get one and look at what Relsoft did with it,.. really, really sweat.. then Neks putting togetter FIDO,. hehe, thats really super sweat.... He posted some pics of that on here somewhere..

C++ :cry: I wish I had the computer for that, oh well :D , theres still FB, and it looks just as good!!.. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Really, I'll have to check those out...

I bet I could do the same in QB though.
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Actully, it does more than QB, its 32 bit, and can opperate in windows. :D
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Post Reply