Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: ArcadeBliss on July 20, 2016, 11:10:38 PM

Title: Bug found and fixed in current animate.nut
Post by: ArcadeBliss on July 20, 2016, 11:10:38 PM
The current animate.nut does stop animations after the configured time has been reached.

to fix this problem, change the current line from:
Code: [Select]
//stop the animation when we reach the end
if ( config.when != When.Always && time >= config.time ) stop();

to:
Code: [Select]
//stop the animation when we reach the end
if ( time >= config.time ) stop();

I also submitted a bug report regarding this.