Button Frame stopped at

Started by Slasher, Tue 25/05/2021 03:53:47

Previous topic - Next topic

Slasher

Hi,

Can someone remind me... Stop button animating to show frame of animation stopped at (between 0 and 9)... Then I can check Frame...

Thanks

eri0o

Going by the button animate page on the manual, it should be something like this I think:
Code: ags
// trigger the animation to play in repeat somewhere
btn.Animate(6 /*view*/, 2/*loop*/, 4/*delay*/, eRepeat);


//in the button click event
int frame = btn.Frame;
btn.NormalGraphic = btn.Graphic;

SMF spam blocked by CleanTalk