Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: boohyabuddha 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?
-
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
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
-
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.