Loadanim question

Previous topic - Next topic

Crivens

What commands do you use to assign a variable to the ID for LOADANIM? With LOADSPRITE you can use GENSPRITE() to assign the ID, but I couldn't find anything for LOADANIM.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

okee

it should work with loadanim

QuoteGLOBAL img = GENSPRITE()
LOADANIM "image.png", img, 32, 32
Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)

Crivens

Ok ta will try it out when I get a minute.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

spicypixel

That is exactly how it works. Use GENSPRITE()
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.