I'm not sure if this is a bug or just me missing the obvious, so I'm posting this here before going into the bug report section.
If I use a global variable to load an image it doesn't appear to be accessed in other code, even though it's been included, but using a global for sound works fine. Probably easier to give an example...
Here's my graphics code
---------------------------------
Global FloorBlocks
global boing ; just a test
FloorBlocks=LoadImage("C:\BlowStuffUp\Graphics\numbers.bmp")
;DrawImage FloorBlocks, 10,10 ;un-remming this displays the image
---------------------------------
Here's the line accessing it in the main code:
DrawImage FloorBlocks, 10,10 ; gives error unless remmed out
print boing; just a test, this shows up
--------------------------------------------------
When trying to access the global outside of the include, I get an error of "The Image Does not exist" The inbclude is working as the global variable "boing" prints with the correct value.
Am I missing something really simple?
Ed.
If I use a global variable to load an image it doesn't appear to be accessed in other code, even though it's been included, but using a global for sound works fine. Probably easier to give an example...
Here's my graphics code
---------------------------------
Global FloorBlocks
global boing ; just a test
FloorBlocks=LoadImage("C:\BlowStuffUp\Graphics\numbers.bmp")
;DrawImage FloorBlocks, 10,10 ;un-remming this displays the image
---------------------------------
Here's the line accessing it in the main code:
DrawImage FloorBlocks, 10,10 ; gives error unless remmed out
print boing; just a test, this shows up
--------------------------------------------------
When trying to access the global outside of the include, I get an error of "The Image Does not exist" The inbclude is working as the global variable "boing" prints with the correct value.
Am I missing something really simple?
Ed.