Hi
I am trying to using sprite2mem and mem2sprite for colourclash detection and
found some strange behaviour... after using sprite2mem etc the rest of the images render in miniture version of the screen and not on the virtual screen as hoped.
I am working with v12.001
USESCREEN 0
Drawobj() // draws on the virtual screen
// after colourclash is used everything left draws on the miniscreen before stretchsprite?? Any ideas
colourclash() // use sprite2mem etc.
drawstats() //
drawother()
myshowscreen // using USESCREEN -1 and stretchsprite
Also - I tried my routine using getpixel and setpixel (not ideal!!) but works perfectly...
There has been a bug with CREATESCREEN and MEM2SPRITE that has been fixed in one of the V11 or V12 betas, maybe in a later version than yours? Also there may be another bug in USESCREEN+SPRITE2MEM (http://www.glbasic.com/forum/index.php?topic=9108.msg82763#msg82763), maybe yours is related to that?
In general, try to get the latest version of GLBasic and test that first.
Even though the web update says your version is up to date, that only goes for that update tree. There might be a newer version for download on the front page. If you look in the upper right corner here on the forums, there is a version number displayed with a link. Use that for downloading that version.