Paint the Alphachannel

Blitz3D Forums/Blitz3D Programming/Paint the Alphachannel

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'd say use a simple decals (sprites or quads) for this. Use eg. 200 decals, this should be more than enough. Then simply fade out about the 50 oldest of them.

you can do this easily if you use a looped index counter:

position footstep(index) somewhere
set alpha of index-51 to index-1 to 1.0 to 0.0, all other 1.0
(need to check if index-i<zero and in that case add 200...)
that's about it