Page 1 of 1

how to put timedelay for sprites motion.

PostPosted: Oct 28, 2009 @ 6:49pm
by bcj
hi,
i am developing a sprite game for windows mobile.
in that i am moving sprites using pixels . and in my game , i have to release sprites one after the other on to the screen . so how i can i put timedelay in relesing of sprites ....

can anybody know, please reply me.

thanks in advance
bcj

PostPosted: Oct 29, 2009 @ 9:51am
by edge
Hi,

A good way to handle this is to add a visibility state to each sprite, and attach a time variable. While invisible, decrease this timer until it is 0 (then make it visible).

The sprites will have incrementing time values to have the effect of them spawning after each other.