How do i make a sprite sequence?

Previous topic - Next topic

Hb!

Hi, I just want to post this animation, in this case instead of behaving as an endless loop, this animation appears and then stops once the last sprite is shown, anyway, I still need to improve it here you go criticize it as much as you can, ^^ I need to improve more... and by the way what do you think about it? is it good? or needs more improvement?
Code (glbasic) Select
main:
FOR a=1 TO 11
IF KEY(30)
DRAWSPRITE a, 200, 200
ELSE
DRAWSPRITE 1, 200, 200
ENDIF
SHOWSCREEN
NEXT
KEYWAIT
GOTO main

Kitty Hello

for 2 animatinos, ok. But for more, use an array.

bigsofty

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)