Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: kayser on October 30, 2015, 11:05:18 AM

Title: Add Sprites or Swf
Post by: kayser on October 30, 2015, 11:05:18 AM
Can someone explain me how to had sprites or a swf file to a layout.nut?
Want to addon some infos like 2 or 3 push buttons and a joystick to the layout with movement..
Title: Re: Add Sprites or Swf
Post by: omegaman on October 30, 2015, 01:40:42 PM
Kayser-

Check out Liquid8d's github fork of AM. He goes into detail on how to use his animate module. Here is a link on how to implement sprite animation. https://github.com/liquid8d/attract-extra/blob/master/layouts/sample_animate/layout-04-sprite-spritesheets.nut


As for SWF files, it should be the same as the fe.add_image function to your layout, so something like this  local swf = fe.add_image( "widget.swf", 0, 0, flw, flh ); Though, I haven't tested this yet. 

Title: Re: Add Sprites or Swf
Post by: kayser on October 30, 2015, 04:20:00 PM
@omegaman thanks
will try something from the exemples..the i will show here my new layout that i´m doyng