bbCreateSprite and bbLoadSprite parents problem

Blitz3D SDK Forums/Blitz3D SDK Programming/bbCreateSprite and bbLoadSprite parents problem

Hi,

Seems OK here.

I added this to the teapot sample after the teapot is created...
sprite=bbLoadSprite( "../../samples/BlitzMax/mak/castle/sprites/bluspark.BMP",1,teapot )

...and this in the main loop...
  If bbKeyDown( #KEY_A )
    bbMoveEntity(teapot,0,0,-0.1)
  EndIf
  If bbKeyDown( #KEY_Z )
    bbMoveEntity(teapot,0,0,0.1)
  EndIf

...and the sprite moved 'with' the teapot as expected.