Flashing Aliens !!!

Blitz3D Forums/Blitz3D Beginners Area/Flashing Aliens !!!

Simmo(Posted 2006) [#1]
Sounds a bit pervy I know !!

I,m just attempting a version of Space invaders as my first try at doing something constructive with my beloved Blitz 3D...The game screen is the usual aliens on the top and ship on the bottom stuff..I,m using CLS to make sure that my ship doesn,t leave a trail when I move it but of course the CLS is causing the whole screen to be redrawn and therefore my aliens are flashing on and off ?? Also after a few shots the whole game slows down drastically on a pentium 1.3Gig ??
Any ideas ??


tonyg(Posted 2006) [#2]
Are you using setbuffer backbuffer().
Without your code it might be tricky but it sounds like you're either loading 'stuff' in your mainloop or not deleting stuff when you're finished with it.
You really need to supply code with problems like this.
<edit> more than 1 flip per cycle can cause flickering as well.


Sir Gak(Posted 2006) [#3]
Well, you might possibly make each particle in the wake a new instance using the For-Each loop commands. When the particles have gone a certain time and/or distance, delete them from the For-Each loop, and they simply don't show up on the next screen FLIP. That way, no CLS is needed.


SoggyP(Posted 2006) [#4]
Hello.

Simmo, try the following link, it's the first post on the beginners forum.

http://www.blitzbasic.com/Community/posts.php?topic=42770

Goodbye.