I used WAIT, but everything drawn last still flickers horribly. Is there a way to get rid of it in screen 12? If not, what is the closest screen to 12 that can do it? I'm revisiting QB, and I can't seem to find the stuff I need.
Thanks.
The reason that I'm asking this is because of two reasons:
I'm writing a pac clone (but with path-finding and other types of AI)
And I want to make a moving 1st person perspective demo in QB
And both are going to flicker when I convert (they are currently in FB).
Besides WAIT &H8D3, what's another way to to reduce flic
Besides WAIT &H8D3, what's another way to to reduce flic
For any grievances posted above, I blame whoever is in charge . . .
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
What exactly are you erasing? Are you using CLS? CLS will cause flickering.
SCREEN 9 can use page flipping to stop flicker. Screen 12 cannot.
How does it look in FB? It might be better to use that.
Ted
SCREEN 9 can use page flipping to stop flicker. Screen 12 cannot.
How does it look in FB? It might be better to use that.
Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
You could take a swing at using Future.Lib if you are into lib's. http://www.petesqbsite.com/downloads/libraries.shtml
They both are currently in FB, and work very well. The demo doesn't use CLS, but the game does. I was hoping to convert these two (but only part of the demo) to QB.burger2227 wrote:What exactly are you erasing? Are you using CLS? CLS will cause flickering.
SCREEN 9 can use page flipping to stop flicker. Screen 12 cannot.
How does it look in FB? It might be better to use that.
Ted
For any grievances posted above, I blame whoever is in charge . . .
Re: Besides WAIT &H8D3, what's another way to to reduce
WAIT &H3DA, 8:WAIT &H3DA, 8,8Mentat wrote:I'm revisiting QB, and I can't seem to find the stuff I need.
This waits one screen refresh and often reduces flicker.
Also, do not erase icon from position P1 and then compute P2 and then, finally, write in P2. Instead, do all computing before the decision to erase.
Code: Select all
OldX = X: OldY = Y
GOSUB ComputeMove
IF OldX <> X or OLDY <> Y THEN
CIRCLE (OldX, OldY), R, 0
CIRCLE (X, Y), R, 15
WAIT &H3DA, 8:WAIT &H3DA, 8,8
END IF
Mac