This site is no longer active and is available for archival purposes only. Registration and login is disabled.

how to put timedelay for sprites motion.


how to put timedelay for sprites motion.

Postby bcj » Oct 28, 2009 @ 6:49pm

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
bcj
bcj
pm Member
 
Posts: 18
Joined: Sep 23, 2009 @ 12:53pm
Location: hyd


Postby edge » Oct 29, 2009 @ 9:51am

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron