What's the best/fastest way to clip a sprite in Blitz? I don't want to clip it off the edge of the screen, but anywhere on the screen. What I'm basically doing is showing an energy bar, which goes from red and one end, to green at the other, showing the condition of the player as a percentage. There will actually be 22 of these bars on the screen per frame so I need it to be fast.
One method I can think of is to print the entire bar, then blank out the 'black' section with a rect command, but isn't rect too slow for real-time applications (especially printing 22 of them per frame)?
Is there a simple clip method?
One method I can think of is to print the entire bar, then blank out the 'black' section with a rect command, but isn't rect too slow for real-time applications (especially printing 22 of them per frame)?
Is there a simple clip method?