Search found 148 matches

by Ralph
Mon Aug 18, 2008 10:41 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Someone can helpme and tell me that this program works well
Replies: 6
Views: 8008

burgr77: Try 5 decimal to binary. Luis: ?Tal vez ser?a bueno limitar las bases a base16? Cambi? la ?ltima parte de su c?digo ?: Luis: It might be a good idea to limit this to base 16? I changed the last part of your code to: 'De base 10 lo transformamos a la base destino DO d# = a# MOD basdes IF d# ...
by Ralph
Mon Aug 18, 2008 7:35 pm
Forum: General Discussion
Topic: Icon change
Replies: 2
Views: 4705

Try doing a right click on the present icon, then, select Properties, then Program. Nead the bottom, on the right-hand side, click on the Chang Icon button. Now, you can choose from those icons presented, or, you can browse through any folder and find nes icons, which you can now use. As to getting ...
by Ralph
Sun Aug 17, 2008 2:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

Your idea sounds good, but, you will have totest, not only the string length, but, the actual time it takes to DRAW. I might be that going up-and-down takes longer than left-to-right. I still feel that sacrificing a little bit of precision coloring would pay off... In any case, the search for etter ...
by Ralph
Sat Aug 16, 2008 7:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

Miles Away: I wrote a program to time various methods of drawing in QuickBASIC 4.5, SCREN mode 12. The DRAW method seems to take a time almost directly proportional to te number of CR commands, as in c15r1. So, if you can manage to substitute some of the "almost equal" colors, perhpas those with ind...
by Ralph
Wed Aug 13, 2008 9:59 am
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 24268

When you try to compile, QB looks for all the files it needs, expecting them all to be IN THE SAME DIRECTORY, or folder, as QB is in! Please put the program you want to compile in that folder. Then, QB will have no trouble compilint. If you don't have all the necessary QB files, including the progra...
by Ralph
Tue Aug 12, 2008 8:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: No " .exe" !
Replies: 23
Views: 24268

Can you open your program from within QB? If so, and it runs OK, try to compile by clicking on RUN, Make EXE File. Let us know if this worked for you.
by Ralph
Thu Aug 07, 2008 11:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: OUT OF STRING SPACE andOUT OF DATA SPACE
Replies: 15
Views: 18347

My IBM BASIC handbook speaks of: Error 4 - Out of data, caused by a READ statement trying to read a DATA after the last data was read. One can re-read data by using the RESTORE staement. But, there is no "Out of Data Space" error listed there. Error 14 - Out of string space, which I think burger77 e...
by Ralph
Thu Aug 07, 2008 12:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

MilesAway1980: Say, I just had a thought! Maybe one way of taking care of those pesky border-intruding tiles is this: 1. Draw the 8-pixel-wide outside, all-around black border once only! 2. Early on, GET an 8x8 black sprite. 3. Whenever a tile of the map is to intrude, let it, followed by PUTing the...
by Ralph
Wed Aug 06, 2008 7:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

Aha! Great! So, that's the secret for a scrolloing map. I'll give it a try, with your snippet. But, maybe in a few days, not today.
by Ralph
Wed Aug 06, 2008 5:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

I still have a question. Do you draw ALL the map every time, or just a part? For the whole map, I would think that the time element would make movement very slow...
by Ralph
Wed Aug 06, 2008 5:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

MilesAway1980: Very nice! Wow, I have never seen such long strings for the DRAW command. Your code snippet worked well. A lot of flicker, due to the constant redrawing of the screen, whether a move required it or not. I added another, short DO/LOOP just after your first DO, that loops until either a...
by Ralph
Mon Aug 04, 2008 9:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

Burger, are you familiar with qmanche? The .bas file is abou 22K. Is that too big to post here? That is, if you are interested in it. To me, the code is very difficult! Of course, if I dedicate a lot of time, I could probably learn how some of the code does what it does, but, right now, I don't have...
by Ralph
Mon Aug 04, 2008 8:50 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

Yeah, Burger knows what he is talking about! I just went through one program that redrew the screen each time, and it was a stationary screen! After various intents of having the OP (original poster) take my suggestions of just moving his scout (the sprite), I finally ended up changing his code to d...
by Ralph
Mon Aug 04, 2008 8:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

I haven't done any considerations for a moving background! I do have a .bas program, called QMANCHE, which has a constantly scrolling forest and buildings. It seems very jumpy, though. I, personally, haven't tried to deciher how the code works. It seems to me o be very tight code, and, pleanty of it...
by Ralph
Mon Aug 04, 2008 4:41 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

OK, instead of the vertical 8x480 and 624x8, for SCREEN mode 12, use a vertical 8x200, and a horizontal 304x8 black (background) tile, that is only TWO tiles. What are you talking about when you say 160 tiles? Perhaps you are talking about the whole screen? Because dividing all the pixels of SCREEN ...
by Ralph
Sat Aug 02, 2008 5:52 am
Forum: QBASIC and QB64 Questions & Answers
Topic: RPG and SPRITE
Replies: 1
Views: 3061

From the Wikipedia, one gets: Sprite: In computer graphics, a sprite (also known by other names; see Synonyms below) is a two-dimensional/three-dimensional image or animation that is integrated into a larger scene. Sprites were originally invented as a method of quickly compositing several images to...
by Ralph
Fri Aug 01, 2008 7:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

MilesAway wrote: As for drawing them and then having a routine that draws over the top of them. I've tried that too. The downside is that you can see the tile for a flicker of a second while its being drawn to the screen, so there's always a flash of disappearing, reappearing tiles around the border...
by Ralph
Fri Aug 01, 2008 3:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: BITS and BYTES
Replies: 4
Views: 5921

burger77: Nice demonsstration! I went through SCREEN modes 1, 2, and 7 through 13. I observed horizontal lines only for SCREEN mode 13. And, with the suitable change in line from horizontal to vertical, isaw blocking only in modes 2 and 13. By the way, the patterens change, according to the SCREN mo...
by Ralph
Fri Aug 01, 2008 2:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 43732

MilesAway: Please see my post in the thread, PAINT COMMAND. There, I show that you can use a very simplified method for any CHR$(N), for N = 32 up to 265. Well, 32 through 125 (the available characters on the keyboard). Maybe that can help you out. As o your desire to PAINT tiles off the screen...hm...
by Ralph
Fri Aug 01, 2008 2:07 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: debugging help.
Replies: 2
Views: 4190

I've got to admit that the final result makes it worth all the effort! The picture you show is wonderful, especially knowing that it is based on your, personal design! Keep QuickBASICing!