Search found 409 matches

by Mentat
Tue Jul 22, 2008 11:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

Let's see ... you can draw to one frame not shown, then pCopy it to the current frame. Or lock it, draw, unlock briefly then relock, draw, etc. Burger might know something else. Again, I'm used to FB lib methods not available in QB. My favorite is start-unlock-lock-cls-draw-loop. Different ways, dif...
by Mentat
Tue Jul 22, 2008 10:53 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

Clear the whole screen, and redraw the whole spill. Or just redraw the tiles and sprite again.
by Mentat
Tue Jul 22, 2008 10:26 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

... 'get keyboard button pressed key$ = inkey$ 'left if key$ = chr$(0) + chr$(75) then scoutX = scoutX - 1 'Right if key$ = chr$(0) + chr$(77) then scoutX = scoutX + 1 ... chr$(0) + chr$(75) is the left arrow chr$(0) + chr$(77) is right arrow chr$(0) + chr$(80) and chr$(0) + chr$(72) are up and dow...
by Mentat
Tue Jul 22, 2008 9:33 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

When you want things to move, you don't put it/him/her in the data array. You give them coordinates and then move the coordinates.

So you're guy has the coordinates 5, 1 according to the map. Instead of putting the number 5 in the map, you put the path, then draw him at his coordinates.
by Mentat
Tue Jul 22, 2008 7:40 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

So you need to put down the tile with PSET. Then you need to put down the mask with AND. What the mask will do is cut out the image by ANDing 0 to where you would draw the sprite's pixels. I think it depends on the screen mode, but in &h13 I used 0 as the sprite's pixels for the mask, and 255 fo...
by Mentat
Mon Jul 21, 2008 7:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

Ah, I did a little checking. In QB, I think there needs to be an extra image for the mask.

FB has pampered me. I'm used to opening up in Paint then flood filling the mask color.
by Mentat
Mon Jul 21, 2008 7:13 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

Okay, but do you need to have two sprites like I have in my code? Or do you just have the one sprite with the invisable background? Also, how do you get the " invisable color"? I used FB for the example, since I learned about sprites after I adjusted to FreeBASIC. So I've forgotten how to...
by Mentat
Mon Jul 21, 2008 1:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with masking and code layout. Please and thanks.
Replies: 28
Views: 34393

Good job. On masking: The idea is for a certain color that causes a to-draw pixel to be ignored, so the background is used instead. Like that sprite. There should be some color that when the computer sees it, it simply just uses the background (the tile in this case). [edit] I'm working on some pict...
by Mentat
Thu Jul 10, 2008 2:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 35842

Oooohhhh. I gotta ask.

Does your keyboard come with an 'any' key?
by Mentat
Thu Jul 10, 2008 10:50 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 35842

Hm. Maybe the computer interprets some of the keyboard stuff (or all) in unicode, but the 16-bit stuff doesn't?
by Mentat
Thu Jul 10, 2008 7:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 35842

ReiKo.cry wrote:Can't I just fix problem with QuickBasic IDE, don't tell me that noone had this problem before?

Thanks.
If you want to rewrite it... :P
It sounds much harder than it looks. I think QB will open up a file if you put it's name next to run QB as a parameter, then run it.
by Mentat
Thu Jul 10, 2008 6:35 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 35842

You can type your code in notepad, save it with a .bas extension, then open it up in QB.

It might give you the same problems, but in command prompt, type edit and you'll get an editor similar to QB's. Blue and ascii and all. But it isn't a compiler, so you'll still have to save with .bas .
by Mentat
Wed Jul 09, 2008 8:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with QuickBasic 7.1
Replies: 26
Views: 35842

Can you type in Notepad or any other text editor?
There's another in command prompt, if you like the feel of the QB IDE.
by Mentat
Mon Jun 23, 2008 1:27 pm
Forum: News and Announcements
Topic: Iron 1 graphics is ready
Replies: 0
Views: 12129

Iron 1 graphics is ready

The library is posted here. It's for FreeBASIC on Windows. I'm trying to get it to also work in Linux.

The project is young, and I want to see where to take it, so don't be afraid to give feed-back.

Or here's an alternative downloading site.
by Mentat
Sun Jun 15, 2008 9:57 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QBinux
Replies: 3
Views: 6812

Would disassembling the executables do any good?
by Mentat
Mon Jun 09, 2008 2:16 pm
Forum: Freebasic Questions & Answers
Topic: Banning
Replies: 17
Views: 57575

Imortis wrote:Is that better?

I apparently never set up an Avatar for here... Or maybe I had one that just disappeared. I don't remember. I have a new one now. You like?
It kinda looks like Sauron's eye. :)
by Mentat
Mon Jun 09, 2008 2:13 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help me please????? Need answers to questions... will pay
Replies: 5
Views: 13399

Play nice. We help for free, in the spirit of The Spirit . Seriously, we're a bunch of geeks, some of us with too much time on our hands (I wish I could say that of myself). #3 : Remember that starting on a pixel includes that pixel in the dimensions. So, a line from (0,0) to (5,0) is six pixels lon...
by Mentat
Sun Jun 08, 2008 9:13 am
Forum: Freebasic Questions & Answers
Topic: Banning
Replies: 17
Views: 57575

burger2227 wrote:TRUE! And that is why FREE BASIC will DIE too.
... In about 5 * 10^9 years, give or take a percent.

I don't know how long Roy will be banned, given his suspension isn't indefinite (Who'll remember his IP address five years from now?).
by Mentat
Sun May 04, 2008 1:22 pm
Forum: Freebasic Questions & Answers
Topic: Interactive shell for trayning FreeBasic ?
Replies: 2
Views: 23772

I would just use the quick run with FBide.
by Mentat
Mon Apr 28, 2008 6:58 am
Forum: QBASIC and QB64 Questions & Answers
Topic: MEMORY OVERFLOW ERROR !!! (Don't need help anymore)
Replies: 16
Views: 29934

That's a lot of DIM SHAREDs. A lot. Are you passing values through subroutines by reference?