GLBasic forum

Main forum => GLBasic - en => Topic started by: bigtunacan on 2012-Aug-03

Title: Animation number of frames?
Post by: bigtunacan on 2012-Aug-03
Is there a function that will return the number of frames in my animation if I created the animation using the LOADANIM function?
Title: Re: Animation number of frames?
Post by: mentalthink on 2012-Aug-03
 You can do something like

Area=base*heigth This it´s the "big" (the complete frame) sprite of the anim...

now you divide for a only one image size size_Sprite
Area=(base*heigth) /  size_Sprite... I think you have the total number of frames of anim... I´m not sure 100  :-[