Hey guys,
I am not sure what I am doing wrong with animating this sprite. Thanks for any help. Not sure what I could be missing.
SetErrorMode(1)
SetVSync(1)
// set window properties
SetWindowTitle( "test" )
setwindowsize( 1366.0, 768.0, 0, 0 )
SetWindowAllowResize( 0 ) // allow the user to resize the window
// set display properties
SetDisplayAspect( 1366.0/768.0 )
SetOrientationAllowed( 0, 0, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
LoadImage( 1, "media/smoketest.png" )
CreateSprite( 1, 1 )
SetSpriteSize( 1, 20, -1 )
SetSpritePosition( 1, 50, 50 )
SetSpriteAnimation( 1, 64, 64, 32 )
do
PlaySprite( 1, 10, 1, 1, 32 )
sync()
loop