Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sandmann999

    Using two libraries at once

    Hi everyone, I've been programming in QBasic for probably 20 years (as a hobby only), but this is the first time I've ever ventured into using graphics and sound libraries. The two that seemed to work well for me are DirectQB and DS4QB (direct sound for QBasic). The only problem I'm running...
  2. sandmann999

    PUTting graphics outside of the veiwscreen?

    Does anyone know how to PUT graphics outside of the VIEW SCREEN without getting an error? I'm trying to perfect my map for my RPG and it uses tiles. I want it to scroll smoothly (moving each tile 1 pixel instead of 1 tile every time the player moves), however, I can't figure out how to get the...
  3. sandmann999

    Is there any way to increase string space?

    Hey everyone. The program I'm writing uses string space like crazy. It's a tile based RPG and the fastest way that I've found to draw the tiles is to put all the tiles of one area into a string array and then DRAW them. Each string for each tile can be 2000 - 5000 bytes in length and when...
  4. sandmann999

    Do COMMON SHARED variables take up stack space?

    Hey everyone, I'm running into the OUT OF STACK SPACE error. I know what the error means and what the stack is, but I'm curious what I can do to clean up some space without using CLEAR (which is not an option by any means). I have a LOT of COMMON SHARED variables that pass between several...
  5. sandmann999

    Screen 13 flicker reduction

    Hey everyone, I'm working on some 3D graphics for a computer game I'm working on. Previously, I was using SCREEN 7 because of the pages feature, but after some optimization, I got my code to run fast enough to look good in screen 13 using the "WAIT &H3DA, 8" command for vertical retrace. My...
  6. sandmann999

    Joystick's in QBasic

    Does anyone have some simple code that can allow me to use a joystick to control my game in QBasic? I know that's rather vague, but the whole idea isn't very complex so it doesn't really require a lot of explaining. Thanks for any help.
  7. sandmann999

    Playing background WAVE files in a QBASIC RPG

    For the last year or so, I've been working on an RPG of mine. I've put a lot of work into it, and the only thing I feel that keeps it from having that final "professional" touch is the fact that it's dead silent. I would love to use wave files for sound effects and for background...
  8. sandmann999

    Two pictures in one BSAVE file?

    Someone was telling me that it is possible to put two or more pictures into one BSAVE file using the offset feature. However, with some playing around with this, I couldn't get it to work. Does anyone know how to do it? This is what I was trying SCREEN 13 DIM pic%(500) DIM pic2%(500) '(code...
  9. sandmann999

    Transparency with the PUT statement?

    I'm trying to figure out how to make it so that when I use the PUT statement, I can make it not show certain colors, hence having a background image show through instead of just a black box around the image. For example, in the following code, it draws a random background, and then places an X...
  10. sandmann999

    Bitmap loader that doesn't use PALETTE?

    Hi, I'm trying to find a bitmap loader that doesn't use the palette function. My reason is this: I'm making an RPG, and am using Bitmaps (made with a regular paint program) for all the monster pictures, and am doing them in 256 colors so that they can be used with SCREEN 13. But what I want to...
  11. sandmann999

    Multiple keyboard inputs?

    I'm writing a program that would highly benefit from the use of numerous keyboard inputs at one time. Such as holding down "y" and "x" at the same time, or maybe the up arrow and the right arrow at the same time (to get a diagonal without using the numeric keypad.) It would...
  12. sandmann999

    Changing resolution, amount of colors, and the use of pages.

    Can someone tell me how I might possibly use 640x480 resolution in Screen 13? Or maybe how to use multiple pages (like Screen 7). Or how to possibly access 256 colors in screen 12? Not exactly like that, but mainly on how to program in the use of different resolutions, colors, and amount of...
  13. sandmann999

    How do you use bitmaps, wav files, and midi files?

    Mostly interested in the bitmap loader. What I'm really looking for (besides the code) is how the code works. I have two bitmap loaders, one is about 5 lines long and the other is about 200 lines long. The 200 line code works pretty well and the 5 line code doesn't work at all (even though...
  14. sandmann999

    Using the DATA and READ commands

    Can someone tell me how to access a certain piece of a DATA string? For example, if I use the lines RESTORE TEST FOR Y = 1 TO 10 FOR X = 1 TO 10 READ INFO PRINT INFO NEXT NEXT TEST: DATA 1,2,3,4,5 DATA 2,2,3,1,5 DATA 1,5,8,4,1 DATA 6,3,3,0,5 DATA 1,2,3,4,2 This code would access the...
  15. sandmann999

    How do you clear the input buffer?

    I have a game where you use the arrow keys to control your figure arround the screen. Every time you press the arrow key, it calculates a lot of things (besides your characters movement) so meanwhile it loads up a lot of direction presses in the buffer and eventually locks up for a few seconds...

Part and Inventory Search

Back
Top