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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sandmann999

  1. sandmann999

    Using two libraries at once

    Hrm... Ok, after looking into it after reading your post, it looks like the direct sound stuff doesn't have a *.qlb or a *.lib attached to it. Its designed that you include a *.bas file as a module in your program, which works pretty slick. The problem is is that it uses the CALL ABSOLUTE...
  2. 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...
  3. 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...
  4. sandmann999

    Is there any way to increase string space?

    Thanks for the info. It looks as if I'll have to go about it a different way and rethink my methods. I'm putting all my tile information saved into DRAW commands and the long strings of information for each tile are stored into strings, which is chewing up the space pretty fast.
  5. 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...
  6. sandmann999

    Do COMMON SHARED variables take up stack space?

    Thanks for the responses. Both explained a lot as to how stack space works. It turns out that my error was caused by small bug that I fixed that caused a recursion, but now I have a temporary code that pops up how much memory I have left (numeric, string, and stack) as the program's running...
  7. 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...
  8. 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...
  9. sandmann999

    Joystick's in QBasic

    Got it to work in Windows 98. (I have both 98 and XP on my computer). It worked great, got a little dot to "fly" around the screen and shoot little bullets when I pressed the buttons. The analogue feature of the STICK command is pretty cool. Unfortunately, it doesn't work in XP and I'm not...
  10. sandmann999

    Joystick's in QBasic

    Sorry, forgot to get back to you. No, unfortunately, none of the code did anything. The STICK function as well as the other code didn't work with any of my joysticks in any port. Could it be Windows XP? If not, any other ideas? Thanks.
  11. sandmann999

    Joystick's in QBasic

    I'm using one on the game port, (it configured in the windows setup) and then I have two joysticks wired in through the printer port. None of them do anything. I'll give it another go in the morning, but I'm not sure what to try. Are you using Windows XP? Or should that not make any difference?
  12. sandmann999

    Joystick's in QBasic

    Hrmm...gave it a try but it didn't do anything. Is there anything special I have to do with the joystick settings to get it to work?
  13. 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.
  14. sandmann999

    Playing background WAVE files in a QBASIC RPG

    Thanks for all the information on that. Definitely a bit too much work for a pure QB method of playing wave files. If I went that route, I don't know enough about how sound cards work to be able to do all the things you mentioned. I'm not really all about having pure QB code playing the wave...
  15. sandmann999

    Playing background WAVE files in a QBASIC RPG

    I've been trying some things. I'm not sure if it's the format that's incorrect (although, I'd still appreciate a working sample. Email address milesaway1980@juno.com). But if I change the kHz to anything but 22050, the speed is wrong, if I change the bits to 16 instead of 8, it's really...

Part and Inventory Search

Back
Top