Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: FrizzleFried on June 23, 2019, 06:01:16 PM

Title: Show Image For X Seconds?
Post by: FrizzleFried on June 23, 2019, 06:01:16 PM
How do I show an image for only x seconds then have it turn off?

Title: Re: Show Image For X Seconds?
Post by: iOtero on June 26, 2019, 04:53:51 AM
Simply:

Code: [Select]
fe.load_module("animate");

local logo = fe.fe.add_image("logo.png", flx, fly, flw, flh);

local fade = {property = "alpha", start = 255, end = 0, time = 2500, delay = 3500, pulse = true}
animation.add(PropertyAnimation(logo, fade));
Title: Re: Show Image For X Seconds?
Post by: FrizzleFried on June 26, 2019, 06:54:05 AM
Thank you.
Title: Re: Show Image For X Seconds?
Post by: iOtero on June 27, 2019, 03:20:15 AM
Thanks. I'm glad i was useful.  :-[