Copies things drawn using a blt command to the offscreen buffer.
Explanation:
@Once you have blitted an image onto the screen, and now you want to call an effect on it, you would use this command to copy it to the offscreen buffer.
@The offscreen buffer created with this command may be used in effects, just like any other screen buffer.
@The image and the effect will display, but they will not be remembered via load/save.
By using blt and ofscpy together, you can create engine cutscenes and such (like those found in AIR), and indeed this is why these commands were created. They may thus be hard to use, but please bear with us.
Usage:
btndef "`"
;read animation images
bg `
ld c,`
;all commands up until this point have been standard image commands, so they will show fine.
resettimer
blt `
waittimer 100
blt `
waittimer 100
;in this fashion can we display images one after the other in an engine cutscene.
;now that we've blitted a bunch of stuff, and we want to process the images with effects and such, we'd need to copy the final product to the offscreen buffer.
ofscpy
bg `
;and now you can do anything you want to either the onscreen or the offscreen buffer.
bg `
ld c,`