Issue with sprites

Just starting out? Need help? Post your questions and find answers here.
s0ula55a551n
User
User
Posts: 25
Joined: Fri Jan 01, 2016 5:55 pm

Issue with sprites

Post 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()
infratec
Always Here
Always Here
Posts: 7659
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Issue with sprites

Post by infratec »

Hi,

in general: to less input.

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

Bernd
s0ula55a551n
User
User
Posts: 25
Joined: Fri Jan 01, 2016 5:55 pm

Re: Issue with sprites

Post 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
Post Reply