GLBasic forum

Main forum => GLBasic - en => Topic started by: Crivens on 2011-Aug-12

Title: Loadanim question
Post by: Crivens on 2011-Aug-12
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
Title: Re: Loadanim question
Post by: okee on 2011-Aug-12
it should work with loadanim

QuoteGLOBAL img = GENSPRITE()
LOADANIM "image.png", img, 32, 32
Title: Re: Loadanim question
Post by: Crivens on 2011-Aug-13
Ok ta will try it out when I get a minute.

Cheers
Title: Re: Loadanim question
Post by: spicypixel on 2011-Aug-13
That is exactly how it works. Use GENSPRITE()