News:

Function Finder  Find all the functions within source code files

Main Menu

SpriteLocals

Started by Squiffy, July 11, 2006, 10:41:31 AM

Previous topic - Next topic

Squiffy

Hi all,
are there advantages to using local sprite variables over using just normal variables? Speed/memory/whatever?

cheers,

kevin

Speed wise sprite locals are slower than variables/arrays.  They just allow you to store 'passable' info in the sprite.  So when you perform sprite collisions for example.  When some sprites hit, you could then peek the locals for where the sprite comes from (ie. array/index)

Squiffy

QuoteSpeed wise sprite locals are slower than variables/arrays.  They just allow you to store 'passable' info in the sprite.  So when you perform sprite collisions for example.  When some sprites hit, you could then peek the locals for where the sprite comes from (ie. array/index)


thanks!