muzzleflash timing
Blitz3D Forums/Blitz3D Programming/muzzleflash timing| 
 | ||
| I haven't used blitz for some time but have started working on a really basic first person shooter.  I have a sprite which displayes briefly when the mouse button is pressed for a muzzleflash.  it works "okay" but I need to sort out the timing issues.  what happens is when i press the button the sprite momentarily displays and it looks okay except with repeated presses the sprite isn't always shown, I suspect it hasn't finished the last "loop" before I press the button again .  The bullet count decreases fine but i don't get a "flash" with every press.  It's pretty consistent but not perfect.  Any ideas on the best way to do this.  I have posted in the past on similar topics but being more critical I can see it is not perfect. Last edited 2011 | 
| 
 | ||
| Like this? | 
| 
 | ||
| Thanks, this could be exactly what I need.  Just a bit of tweaking to get it into my code. |