I'm trying to use GENSPRITE() to make assigning numbers to sprites easier, but it just crashes my game.
If I do this:
GLOBAL menuPointerSprite = GENSPRITE()
LOADSPRITE "/Menu/pointer.png", menuPointerSprite
As indicated in the help file, the game compiles correctly, but when it runs I just get the spiny circle icon, and my app never appears. I have to go into Task Manager and kill it off.
I've also tried this:
GLOBAL menuPointerSprite = 0
menuPointerSprite = GENSPRITE()
LOADSPRITE "/Menu/pointer.png", menuPointerSprite
My game compiles and runs, but it always assigns 0 to menuPointerSprite.
For instance:
GLOBAL screenGrab = 0
screenGrab = GENSPRITE()
GLOBAL menuPointerSprite = 0
menuPointerSprite = GENSPRITE()
LOADSPRITE "/Menu/pointer.png", menuPointerSprite
PRINT screenGrab, 10,10
PRINT menuPointerSprite, 10,20
Shows me that both screenGrab and menuPointerSprite are equal to 0. I don't think I'm doing anything wrong (famous last words!)...
This is running under Windows 7 Ultimate, 64bit.