Sprite String :P

Post your own tutorials, guides and demos.

Post » Mon Jun 06, 2011 8:19 am

You've heard of sprite chains before, now I give you the Sprite String!:
[url:u5ezimd2]http://dl.dropbox.com/u/666516/sprite-string.cap[/url:u5ezimd2]

Fun fact:
If you send an expression a string that is meant to use a number it will convert it to a number.
Because of this little "feature" you can use GetToken(string, N [, delimiter]) to create arrays from strings.

While its a bit easier to figure out, I wouldn't suggest using this method for a whole lot of instances, as I've noticed a slow down on anything over 100 sprites.
Probably because of the text conversion.....
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Mon Jun 06, 2011 11:37 am

Nice example. :)
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests