Search found 14 matches

by Albert
Mon Sep 05, 2016 3:46 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What should I learn next in QB64
Replies: 2
Views: 9042

Re: What should I learn next in QB64

burger2227 wrote:Graphics of course unless you are doing all text. Then learn ASCII characters. See Main page of WIKI

http://www.qb64.net/wiki/index.php/Main_Page
ok I will practice graphics and ascii characters. thank you
by Albert
Sun Sep 04, 2016 2:42 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What should I learn next in QB64
Replies: 2
Views: 9042

What should I learn next in QB64

I master printing, strings, variables, booleans, loops,getting user input, screens, functions, drawing, arrays in QB64 but I'm not ready right now to make a good game. What do you suggest me to learn next?
by Albert
Sat Aug 27, 2016 7:41 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help with printing
Replies: 1
Views: 7860

Re: Need help with printing

just PRINT and the result without quotation mark

e.g.:

Code: Select all

INPUT num1
INPUT num2
sum = num1 + num2
PRINT sum
by Albert
Wed Aug 24, 2016 5:08 am
Forum: QBASIC and QB64 Questions & Answers
Topic: I have a problem with INKEY$ and _DELAY
Replies: 5
Views: 12222

Re: I have a problem with INKEY$ and _DELAY

INKEY$ reads the keyboard buffer. IE the buffer holds the keys pressed until read. PRINT "Press ENTER to continue." DO LOOP UNTIL INKEY$ = CHR$(13) _DELAY 2 PRINT "Press ENTER again to quit." DO PRINT INKEY$; LOOP UNTIL INKEY$ = CHR$(13) Press all the keys you want during the de...
by Albert
Tue Aug 23, 2016 5:54 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: I have a problem with INKEY$ and _DELAY
Replies: 5
Views: 12222

Re: I have a problem with INKEY$ and _DELAY

burger2227 wrote:What are you trying to do? Worked for me.
you can press enter twice without waiting for the delay and once the time passes it just ends the application
by Albert
Tue Aug 23, 2016 5:28 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: I have a problem with INKEY$ and _DELAY
Replies: 5
Views: 12222

Re: I have a problem with INKEY$ and _DELAY

SCREEN _NEWIMAGE(800, 600, 32) PRINT "Press ENTER to continue." DO LOOP UNTIL INKEY$ = CHR$(13) _DELAY 1 PRINT "Press ENTER again to quit." DO LOOP UNTIL INKEY$ = CHR$(13) in this example you can press enter twice without the second print being displayed but it still ends the ap...
by Albert
Tue Aug 23, 2016 5:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: I have a problem with INKEY$ and _DELAY
Replies: 5
Views: 12222

I have a problem with INKEY$ and _DELAY

SCREEN _NEWIMAGE(800, 600, 32) PRINT "Press ENTER to continue." DO LOOP UNTIL INKEY$ = CHR$(13) _DELAY 1 PRINT "Press ENTER again to quit." DO LOOP UNTIL INKEY$ = CHR$(13) in this example you can press enter twice without the second print being displayed but it still ends the ap...
by Albert
Sun Aug 21, 2016 2:32 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: I need help with my HP bar
Replies: 2
Views: 8668

Re: I need help with my HP bar

burger2227 wrote:Place a black box over the green end area and work it back to the start.
You can replace the white frame each loop or place the green box inside of it instead.
sorry because it took me so long to answer but thank you so much!!!
by Albert
Sat Jul 23, 2016 6:11 am
Forum: QBASIC and QB64 Questions & Answers
Topic: I need help with my HP bar
Replies: 2
Views: 8668

I need help with my HP bar

So I tried to make an HP bar. If I try to update it I must use CLS but I don't want the whole screeen to get cleared. Is there any way to fix this or clear only a part of the screen? SCREEN _NEWIMAGE(800, 600, 32) white& = _RGB(255, 255, 255) green& = _RGB(0, 255, 0) fhp = 100 hp = fhp DO RE...
by Albert
Fri Jul 08, 2016 4:38 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Text background color is black
Replies: 4
Views: 12090

Re: Text background color is black

burger2227 wrote:OUT can change the black to any color with RGB values from 1 to 63 instead of 1 to 255. Divide the Qb64 rgb values by 4 using out.
ty, now I got it
but is there any way to make this work with _newimage?
by Albert
Thu Jul 07, 2016 2:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Text background color is black
Replies: 4
Views: 12090

Re: Text background color is black

I'm not understaing any of that :oops: :cry:
by Albert
Tue Jul 05, 2016 2:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Text background color is black
Replies: 4
Views: 12090

Text background color is black

so I would like to have a colored background but text still apears white on black idk if you understand so I attach a photo: http://www.petesqbsite.com/phpBB3/download/file.php?mode=view&id=26 is there anyway to make text don't have that black background? btw the code: SCREEN _NEWIMAGE(800, 600,...
by Albert
Mon Jul 04, 2016 1:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: QB64 inkey$ requires multiple presses
Replies: 3
Views: 9762

Re: QB64 inkey$ requires multiple presses

Not a bug! You were reading the INKEY$ function many times and results were read and changed each time: DO K$ = LCASE$(INKEY$) ' K holds first Inkey$ result and lowers uppercase types too LOOP UNTIL K$ = "a" OR K$ = "s" OR K$ = "d" IF K$ = "a" THEN PRINT &quo...
by Albert
Mon Jul 04, 2016 10:33 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QB64 inkey$ requires multiple presses
Replies: 3
Views: 9762

QB64 inkey$ requires multiple presses

so QB64 inkey$ requires multiple presses to register a key press e.g. : DO IF inkey$ = "a" THEN GOTO 100 IF inkey$ = "s" THEN GOTO 200 IF inkey$ = "d" THEN GOTO 300 LOOP UNTIL inkey$ = "a" OR inkey$ = "s" OR inkey$ = "d" 100 PRINT "You...