Author Topic: Video when Game Launch?  (Read 3583 times)

boohyabuddha

  • Newbie
  • *
  • Posts: 2
    • View Profile
Video when Game Launch?
« on: June 23, 2016, 08:45:19 AM »
I'm still setting up Attract Mode and have a lot of what I want done. However, I created a video I was hoping to play when a game is selected/launched, but I'm not finding an option for this, and I'm not finding plugins or anything in MAMEUIFX64 or Attract-Mode that'll help me out. Does anyone know how to go about this, or is this not an option in AM?

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Video when Game Launch?
« Reply #1 on: June 23, 2016, 08:21:15 PM »
I think these are the tid bits you need to look at to get you started. You can add the transition to a layout, but it might make a nice plugin like you mentioned. I could make this rather easily if it works how I believe it should, but am currently 1000 miles from my computer. Take a look at the intro plugin as well.

https://github.com/mickelson/attract/blob/master/Layouts.md#feadd_transition_callback

Code: [Select]
fe.add_transition_callback( function_name )

function transition( ttype, var, transition_time )
{
   local redraw_needed = false;

   // do stuff...

   if ( redraw_needed )
      return true;

   return false;
}

Transition.ToGame

boohyabuddha

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Video when Game Launch?
« Reply #2 on: June 24, 2016, 10:11:05 AM »
I'd be eternally thankful if you made a plugin for it! I'll still try to create a script for it, but I'm fairly certain I won't be able to get it to do what I want as easily as more seasoned scripters here could.

Edit: Also, I hope I'm not being too needy about this, but I'm trying to set it up so that once the intro video stops playing, the ambient soundtrack will start. I can't seem to get them to stop overlaying with each other.
« Last Edit: June 24, 2016, 10:26:27 AM by boohyabuddha »