Simple but fast fading method

BlitzPlus Forums/BlitzPlus Programming/Simple but fast fading method

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.

When I try to run it, I get an error message saying 'Expecting "End Function"' (line 58) highlighting the [256] in Local counts%[256] I turned this into a comment to see if it would work without it, but I just get more error messages. 2 lines down, it says: expecting "Next", and there are many more error messages to come. Might this be something to do with my version of blitz? It seems to not like the lines with things like:
counts[layer]
counts[a]
I tried changing the [s to (s, but that didn't help. Or it could be something to do with the 'count' variable. Is this written for Blitz3D, as I'm using blitz Basic.