Author Topic: add a delay to an fe.signal () command?  (Read 1936 times)

sickle

  • Full Member
  • ***
  • Posts: 65
    • View Profile
add a delay to an fe.signal () command?
« 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


sickle

  • Full Member
  • ***
  • Posts: 65
    • View Profile
Re: add a delay to an fe.signal () command?
« Reply #2 on: April 27, 2020, 01:27:23 PM »
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
Code: [Select]
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.