## Search found 101 matches

Sat Jul 28, 2007 1:28 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Am I too late??
Replies: 6
Views: 5269
lol I LOVED those games! Classics! :) Programming those kinds of games is completely doable in QBasic, but it takes a while to get to that point. However, I believe anyone with the desire and the willingness to commit some time can learn how to program. And yeah, QBasic is a GREAT language to start ...
Fri Jul 27, 2007 7:58 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Am I too late??
Replies: 6
Views: 5269
Never too late to learn! http://www.petesqbsite.com/sections/tutorials/beginners.shtml#1 contains some links to good starting material. http://www.qbasicstation.com/ has some decent tutorials as well. Check out the Command Tutorials link for a nice quick reference to Qbasic commands. By the way, do ...
Fri Jul 27, 2007 12:41 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: A VERY VERY QUICK question!
Replies: 3
Views: 3541
Can you clarify? Do you mean like show the current time at the top of your screen? Or just display a countdown from any particular starting time while other stuff happens? What do you mean by doesnt affect your whole program? Pseudo-code for possibly doing what you're asking: Determine countdown tim...
Thu Jul 26, 2007 2:25 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with another code!
Replies: 9
Views: 8607
How did you figure out the calculations for the AND statements? Your game board is 15 rows by 52 columns, so when we check whether we can move the guy to the next space, we go through the following for each direction: 1. Move LEFT (x=x-1) Make sure our x value stays to the right of column 0 on the ...
Thu Jul 26, 2007 1:54 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with another code!
Replies: 9
Views: 8607
Sorry, didn't notice the code was messed up when I posted. It's a problem with this forum's message board system apparently. When it encounters a less than sign, it must think it's the beginning of a tag or something. I've replaced the troublesome less than sign with LESS THAN below. hope that clari...
Thu Jul 26, 2007 12:10 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with my code
Replies: 5
Views: 3825
Thu Jul 26, 2007 12:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with another code!
Replies: 9
Views: 8607
Just need to check the character's position before moving him. Since he takes up 3 spaces (" .8. "), we have to be careful when checking if he bumps into the far right wall, because his (x,y) position only defines where drawing the man begins . He extends for another 2 positions, so you need to chec...
Thu Jul 26, 2007 10:15 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with another code!
Replies: 9
Views: 8607
Here's the 2 lines with the problem: IF MID\$(field\$(x), y, 1) = "|" THEN ... IF MID\$(field\$(x), y, 1) = "\$\$\$" THEN To fix the issue, switch the x and the y, so the lines should be changed to: IF MID\$(field\$(y), x, 1) = "|" THEN ... IF MID\$(field\$(y), x, 1) = "\$\$\$" THEN The problem is that when you s...
Thu Jul 26, 2007 10:07 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with my code
Replies: 5
Views: 3825
Try out this code. I made 3 changes: 1. Switched x and y variables for clarity. 2. Added the section marked with 'BEGIN NEW CODE which erases the character if a key is pressed before changing the position. 3. Removed the extra spaces from the lines that draw the character. CLS SCREEN 13 DO RANDOMIZE...
Thu Jul 26, 2007 8:47 am
Forum: QBASIC and QB64 Questions & Answers
Topic: can I do this in a SUB?
Replies: 2
Views: 3430
Yes, in fact, you shouldn't have to use the text "GOTO SUB" at all. Just type the name of your sub. QB recognizes the implicit CALL command when you just type the name of the SUB. So the code below should work fine. SUB INTRO 10 PRINT "HELLO " INPUT A\$ SELECT CASE A\$ CASE IS = "HELLO" DOG CASE IS = ...
Wed Jul 25, 2007 9:53 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with my code
Replies: 5
Views: 3825

### The LOCATE command

Looks like the LOCATE command is giving you some trouble. Unlike ALL the other QB commands that use (x,y) coordinates where the first coordinate is the horizontal position and the second coordinate is the vertical position, with LOCATE it's exactly the opposite. The first coordinate is the up and do...
Wed Jul 25, 2007 3:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Dont know how to move objects.
Replies: 7
Views: 6552
Lee, Yes, coordinate numbers matter, because they determine exactly which part of the screen is captured as the picture designated "ball". If we capture the wrong part of the screen, the ball doesn't get drawn correctly or doesn't get drawn at all. Consider the following explanation. SCREEN 13 CLS S...
Wed Jul 25, 2007 10:08 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Dont know how to move objects.
Replies: 7
Views: 6552

### Animation Basics in QB

The key is storing the picture's screen position in 2 variables. Store one for the horizontal (usually referred to as the x) position and one for the vertical (usually referred to as the y) position. Then you can just manipulate the variables to change the picture's position on the screen. Keep in m...
Wed Jul 25, 2007 8:32 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Dont know how to move objects.
Replies: 7
Views: 6552

### Basic Animation

Is it the actual changing of the picture's position? or the displaying of the picture that's confusing you?
Thu Sep 14, 2006 8:45 am
Forum: News and Announcements
Topic: Two Lords alpha build released
Replies: 7
Views: 11424

### Bingo

Good call. It works now. Thanks, Dr_D!
Wed Sep 13, 2006 10:11 am
Forum: News and Announcements
Topic: Two Lords alpha build released
Replies: 7
Views: 11424
Updated the driver, and the full screen mode worked. ... at first anyway. Got an error that closed the program, but at least it's a start. Music plays, Plantasy Studios fades in and out, Two Lords title screen displays, and then it kicks me out of the program with the following error report: (copied...
Wed Sep 13, 2006 10:06 am
Forum: News and Announcements
Topic: Two Lords alpha build released
Replies: 7
Views: 11424

### Laptop Video Card

Ah, yep, my laptop doesn't support 320x240 mode. :( My laptop video adapter is Mobile Intel? 915GM/GMS, 910GML Express Chipset Family. "The set of basic static display modes (at 60Hz and up to 32bpp colors) include 640x480, 800x600, 1024x768, 1280x1024, and 1600x1200." http://www.intel.com/support/g...
Mon Sep 11, 2006 3:06 pm
Forum: News and Announcements
Topic: Two Lords alpha build released
Replies: 7
Views: 11424

### Fullscreen?

Sweet game! Keep up the great work!

Is there a way to play in full screen mode? It makes it tough to turn using the mouse in windowed mode, cuz when the mouse moves out of the window, the view suddenly angles sharply up and the hand starts firing automatically.
Wed Sep 06, 2006 1:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Determine the name of the running executable.
Replies: 3
Views: 4594

### Checking the currently running EXE file name

Code for checking the EXE file name DECLARE FUNCTION exename\$ () DEFINT A-Z CONST true = -1, false = 0 ' \$INCLUDE: 'qb.bi' PRINT exename\$ REM \$DYNAMIC FUNCTION exename\$ ' ' This function returns the name of the exefile which is running ' DIM regs AS RegTypeX tmp\$ = "" regs.ax = &H6200 CALL Interrup...
Mon Sep 04, 2006 12:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: One heck of a problem!
Replies: 4
Views: 5725

### Fraid so

Thanx Stoves, it's all back to smooth now!, but still the process 'Ntvdm' is taking a whooping 99% of the cpu, is there a way to make it less! Yeah, like The Walrus said, unfortunately there's no way (that I'm aware of) to make the Ntvdm process be less of a processor hog. Cuz of that, I try to do ...