Going to ask this as a question before logging a bug.
below is a code snippet. It works fine on MacOSx however when running on Windows 7 64bit the complier throws an error on the start drawing command, saying the sprite has not been initialised indicated line. If you continue the program it has actually completed that instruction ok. Any ideas ?
Code: Select all
;dirt
AddElement(bgd_Tiles())
bgd_Tiles() = CreateSprite(obj_Create::#Dirt, sprite_w, sprite_h)
Debug bgd_Tiles()
[color=#FF0000][b]StartDrawing(SpriteOutput(bgd_Tiles()))[/b][/color]
Box(0,0,sprite_w,sprite_h,RGB(139,0,0))
DrawText(15,10,"" + obj_Create::#Dirt )
StopDrawing()