Search found 80 matches

by matt2jones
Tue Nov 08, 2005 3:59 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Random Numbers
Replies: 20
Views: 46563

There are an infinite number or chaotic functions that will return 'random' numbers. Given the same argument they'll always return the same number, but there's no pattern in the numbers returned for any interval... That's a way to return random numbers. The first time it's called, you call rnd(0), t...
by matt2jones
Tue Nov 08, 2005 3:55 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Resetting Array Data?
Replies: 5
Views: 10770

Try looking up ERASE or REDIM commands....

Failing that, do it by hand...

matt
by matt2jones
Mon Nov 07, 2005 6:07 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Out of Stack Space
Replies: 10
Views: 19367

Ehh, It's probably more likely that you've got an out of stack error because you've called too many subs withing subs... (If your a begginner)

Post up the code here and I'll explain it to you.

matt
by matt2jones
Mon Nov 07, 2005 6:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: music
Replies: 8
Views: 10358

but just check QB's inline help, it really is pretty thourough.
It doesn't cover this.
Play "c4"
Plays the note C for 1/4 the length of time that PLAY "C" plays it for.

matt
by matt2jones
Mon Nov 07, 2005 5:56 am
Forum: General Discussion
Topic: Slow month? Post what you've done!
Replies: 24
Views: 46472

I've been: Beginning recoding a Qb style FBIDE (No longer using Visual Basic 1) Writing the game editor for a House of the Dead style shooter Learning allot about AI Savlaging a Zelda Style RPG engine that FB crashed on me Going through the second-last, last, last, last, last beta test on an old QB ...
by matt2jones
Thu Nov 03, 2005 10:54 am
Forum: QBASIC and QB64 Questions & Answers
Topic: collision detection
Replies: 6
Views: 8854

You could also use the SCREEN function to check what character is infront of the @, and if it's a wall, don't allow them the @ to move. It's not good programming practice to do collisions straight from the screen like that, but if you have allot of walls it's easier to manage. IF K$ = "2" ...
by matt2jones
Thu Nov 03, 2005 6:32 am
Forum: General Discussion
Topic: Bad teachers
Replies: 16
Views: 32081

I'm a self-taught coder as well, and over the years have tried to teach other people how to program, and it never really worked. IMO there are certain concepts that need to be grasped, and if they aren't, everything falls down. I'm doing a computer coarse in college at the moment, and I was looking ...
by matt2jones
Wed Nov 02, 2005 4:33 am
Forum: General Discussion
Topic: qbasic rpg
Replies: 7
Views: 14552

Dude, that guy was obviously taking the piss (most likely outta me)...

No newbie has ever been that steriotypical.

matt
by matt2jones
Fri Oct 28, 2005 4:10 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Graphics...
Replies: 27
Views: 30896

ASM is not hard, it just involves a knowlage of exactly what your doing, instead of how you used to do it. It's a concept problem as aposed to anything else.

matt
by matt2jones
Fri Oct 28, 2005 4:07 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Variable grabbing
Replies: 11
Views: 14457

Do you mean:

code:

Code: Select all

A=100
input  A

Output:

>100_


...

Eh, as in the value of the variable appears at the cursor when you call the input function?

I think older versions of basic used to do that...

matt
by matt2jones
Fri Oct 28, 2005 4:00 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Listing of inkey$ codes
Replies: 24
Views: 31219

And in FreeBASIC you have the multikey() option,.. Is it wrong to use the table included in the gfxlib document to find the correct hexadecimal for the key you need? :shock: Okay, What the flying fork?!?!? Why?... Why? I can't even summon the strength to anwer that... we were talking about mother f...
by matt2jones
Fri Oct 28, 2005 3:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: need help with getting input from parallel port device
Replies: 5
Views: 7351

Yeah, put up as much code as can.

As I've said, I've never use the LPT port through Qbasic before.

matt
by matt2jones
Thu Oct 27, 2005 10:56 am
Forum: QBASIC and QB64 Questions & Answers
Topic: need help with getting input from parallel port device
Replies: 5
Views: 7351

Yeah, this does sound difficult without knowing what the equipment is. I've had very little experiance with communicating with hardware in QB, all I've done is sending information to the modem, which is on the serial port, which is used with the OPEN "COM:" statement, and I don't know if t...
by matt2jones
Thu Oct 27, 2005 4:18 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Listing of inkey$ codes
Replies: 24
Views: 31219

All apologies. do:do:A$ = right$(inkey$,1):loop while A$ = "":print A$,ASC(A$):loop until a$ = chr$(27) But really, if you couldn't have figured that out, don't go acusing me of 'not being able to use the scancode tables'. This is the 'question and answers' section, if you wanna insult me,...
by matt2jones
Wed Oct 26, 2005 8:54 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Listing of inkey$ codes
Replies: 24
Views: 31219

Obviously (and I shouldn't have to say this, but I feel this conversation going that way) I do not have a program that writes out a file of constants with english string names for every key on the keyboard. If you intend proving this to me through rhetorical questioning I won't play along. I wasn't ...
by matt2jones
Wed Oct 26, 2005 8:40 am
Forum: QBASIC and QB64 Questions & Answers
Topic: I need help...literally
Replies: 13
Views: 16486

Seriously, don't write up guys homework for them. That helps no-one. If they're teacher is seriously as incompetant as they say, the whole class will fail and something will be done about it, so if you help a few, the teacher will think she's teaching it fine and the students are fork up, and the wh...
by matt2jones
Tue Oct 25, 2005 4:06 am
Forum: News and Announcements
Topic: Tsugumo's Pixel Art tutorials
Replies: 14
Views: 24675

sweet!

I thought it went down years ago, and was resigned to having a poor quality .doc version without the streetfighter graphics part.

thank god someone I know has it.

Seriously, your doing amazing archival work here, I tip my mother fork hat.

matt
by matt2jones
Tue Oct 25, 2005 4:03 am
Forum: QBASIC and QB64 Questions & Answers
Topic: BSAVE and BLOAD
Replies: 5
Views: 7757

you could use mspaint to save them as .bmp files and use freebasic to bsave/bload them however. Or you could find a gif loader (there are loads at Qbasic.com) and bsave the screen, for futuring bloading. ditto with the jpeg pics.... Or you could save the jpegs as .bmp and use a bmp loader (I've only...
by matt2jones
Tue Oct 25, 2005 3:58 am
Forum: QBASIC and QB64 Questions & Answers
Topic: List of few basic questions
Replies: 24
Views: 25856

speaking of which, a few years ago I remember you posted up a tutorial on writing RPG's in Visual Basic... Do you still have a copy of that lying around, I'd be interested in taking a look at it...

matt
by matt2jones
Tue Oct 25, 2005 3:55 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Listing of inkey$ codes
Replies: 24
Views: 31219

do :A$ = right$(inkey$,1):print A$,asc(A$):loop until A$ = chr$(27) Then press whatever key you want to know the info about, and it prints it. I have a line like that in the immediate window pretty much every time I open QB since I started. It's how I know that the F1-5 keys are ; < = > @, I could ...