Author Topic: Add Sprites or Swf  (Read 5771 times)

kayser

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
Add Sprites or Swf
« 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..
« Last Edit: October 30, 2015, 11:17:01 AM by kayser »

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Add Sprites or Swf
« Reply #1 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. 


kayser

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
Re: Add Sprites or Swf
« Reply #2 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