PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

how to put timedelay for sprites motion.

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
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.