How to get a sprite to flash on screen

Advanced game related topics
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

How to get a sprite to flash on screen

Post by Hydrate »

I need a sprite to flash on the screen, i can it it to display no problem, but i cant get it to flash, how could i go about doing this?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

this may sound stupid, but euh...

1. draw it
2. flipbuffers
3. wait
4. don't draw it
5. flipbuffers again
6. wait
7. goto 1
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post by Hydrate »

blueznl wrote:this may sound stupid, but euh...

1. draw it
2. flipbuffers
3. wait
4. don't draw it
5. flipbuffers again
6. wait
7. goto 1
Stupid as it sounds it was too obviously right, i cant belive i didnt think of it.
Post Reply