Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: sickle on April 24, 2020, 12:15:45 PM
-
I currently have a button press activate a quick animation and a sound file at the same time. I then want to start the selected game after the animation finishes, how can i delay the fe.signal("select") to after the animation/ after a set amount of time?
here is a snippet of the code that's currently running:
https://drive.google.com/open?id=1-8_YPwf5lXC3YeCOD-DCX4OSm23d22EL
-
https://github.com/mickelson/attract/blob/master/Layouts.md#add_transition_callback
Transition.ToGame
Return false when done.
-
I've tried this a few times and in a few different ways. transition callbacks just keep sending the select signal instantly when I click the button. I've tried sending the signal when the animations stop, using stuff like
if (hucard_fadeout.time == 2000){}
but it always either starts instantly on button press or doesn't start at all. does anybody have any ideas of how to accomplish this? also, I'm pretty new to squirrel, so the more detailed, the better.