Page 1 of 1

Issue with sprites

Posted: Thu Feb 11, 2016 4:43 pm
by s0ula55a551n
Hi,

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()

Re: Issue with sprites

Posted: Thu Feb 11, 2016 4:47 pm
by infratec
Hi,

in general: to less input.

As hint: Have you defined the list as .i ?

Bernd

Re: Issue with sprites

Posted: Fri Feb 19, 2016 11:58 am
by s0ula55a551n
infratec wrote:Hi,

in general: to less input.

As hint: Have you defined the list as .i ?

Bernd

Will double check this, put probably