Ok i need help on how to animate a list of sprite. Im fairly newbie :)
The things is let say i had 10 sets of images, each image has its own delay for example:
img1->5 ticks
img2->3 ticks
img3->7 ticks
and so on
So how should i do it in a proper way?
I had this code i made on AGK2, if i disable vsync the sprite animate so fast but if i set the sync rate to 60 it works although i want it to work both ways.
Do
paxisx = GetRawMouseX()
paxisy = GetRawMouseY()
SetSpritePosition(img[cnt].img, paxisx - img[cnt].x, paxisy - img[cnt].y)
DrawSprite(img[cnt].img)
if tick >= prevtick + img[cnt].delay
cnt = cnt + 1
prevtick = tick
endif
tick = tick + 1
if cnt >= 10 then cnt = 0
swap()
Loop
I really need help so i can move to the next level of learning curve :)