Page 1 of 1

Is TransparentSpriteColor() a fast command?

Posted: Mon Jun 13, 2005 10:26 am
by Lebostein
Hi,

i have created for my game engine a dynamic sprite management. Before every "DisplaySprite(#sprite)" command I use the TransparentSpriteColor(#sprite, R, G, B) command. Is this command very fast or activate this command big processes?

Sorry for my english :oops:

Posted: Mon Jun 13, 2005 8:24 pm
by Trond
I don't think you should it that often.

Posted: Tue Jun 14, 2005 1:42 am
by Fred
Well it greatly depends of the implementation. On Windows, it's very fast (just 2 variables to set), while on MacOS X it will be rather slow (need to modify all the pixels of the sprite). Why do you call this before each DisplaySprite() ? This information is stored on sprite basis.