Author Topic: Show Image For X Seconds?  (Read 3949 times)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Show Image For X Seconds?
« on: June 23, 2019, 06:01:16 PM »
How do I show an image for only x seconds then have it turn off?

Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

iOtero

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Re: Show Image For X Seconds?
« Reply #1 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));
Nacer a los 15 años Una novela de iOtero

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 245
    • View Profile
    • Idaho Garagecade
Re: Show Image For X Seconds?
« Reply #2 on: June 26, 2019, 06:54:05 AM »
Thank you.
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

iOtero

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Re: Show Image For X Seconds?
« Reply #3 on: June 27, 2019, 03:20:15 AM »
Thanks. I'm glad i was useful.  :-[
Nacer a los 15 años Una novela de iOtero