#ATTRNUMFRAMES shows 0 for #ASYNCDRAW object
Posted: Wed Dec 28, 2016 11:11 pm
Hi, I have a question about following code (sprite gets 4 frames because I can see them later on):
it shows 0 all the time.
#ATTRTYPE gives 1
Thank you.
Code: Select all
LoadSprite(1, "myGameHero.gif", {x=0, y=0 ,transparency=#BLACK, width=16, height=16, frames=4})
obj = MoveSprite(1 , 0 , 0 , 100 , 100, {speed=1, animspeed=1, Async = True})
DebugPrint("total frames: "..GetAttribute(#ASYNCDRAW, obj, #ATTRNUMFRAMES))
#ATTRTYPE gives 1
Thank you.