hey all..
im trying to play sprite using this code:
LoadAnimation(0,20,"Data\Anim\SGG Anim\SGGAnim",1000,".png")
sprite 2,249,5,1000
set sprite frame 2,1000
do
play sprite 2,1000,1020,50
loop
function LoadAnimation(forstart,toend,file$,num,format$)
number = num
for a = 0 to 20
if a > 0 then zirows$ = "0000"
if a < 10 then zirows$ = "000"
if a => 10 then zirows$ = "00"
if a => 100 then zirows$ = "0"
if a => 1000 then zirows$ = ""
load image file$+zirows$+str$(a)+format$,number
number = number+1
next a
endfunction
this is the code of load 20 images (from 1000 to 1020)
now when u using "play sprite" command, it says that the image not exist..
but it it exist! this how i checked it:
for a = 0 to 20
if image exist(a+1000)=1 then text 0,0+(a*15),"Image: "+str$(a)
next a
here is the image animation if u guys need..
http://62.0.80.240:81/anim.zip
so whats the problem? does someone can load and play it?
By the time you finish reading this, you realize you have wasted 5sec. of your life!
click
here to return your 5sec.