Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: kent79 on November 12, 2016, 08:21:35 AM

Title: Anyone can write a sample code for display previous flyer image
Post by: kent79 on November 12, 2016, 08:21:35 AM
I know it needs function fe.get_art(), but I don't how to do. Anyone can write a sample code for display previous flyer image? Many Thanks.
Title: Re: Anyone can write a sample code for display previous flyer image
Post by: jedione on November 12, 2016, 11:58:49 AM


local Fly = fe.add_image( "Flyer", 100, 100, 200, 100 );
Fly.index_offset = 1;


ie:
Fly.index_offset = -2;
Fly.index_offset = -1;
Fly.index_offset = 0;
Fly.index_offset = 1;
Fly.index_offset = 2;
Fly.index_offset = 3;
Title: Re: Anyone can write a sample code for display previous flyer image
Post by: kent79 on November 12, 2016, 05:40:58 PM
It works. Many Thanks
Title: Re: Anyone can write a sample code for display previous flyer image
Post by: jingletit on February 21, 2017, 04:59:45 AM
I tried this and it worked on my laptop but when I loaded my theme onto the raspberry pi non of the previous images load