[SOLVED] Video after loading a game.

Started by migrator, Fri 27/01/2017 17:48:46

Previous topic - Next topic

migrator

It is possible to play a video just after loading a game?

I want to play a video summary just after the <<Continue>> option of the mainscreen. This option loads the last saved slot and shows something like <<Previously...>> and depending on the situation of the game a video is played. After this video the game continues normally.

It is possible to take the control after loading a game?

Thanks.

Snarky

Yes. Find the on_event() function in your GlobalScript, and add a condition:

Code: ags
function on_event(EventType event, int data)
{
  // ... other stuff?
  if(event == eEventRestoreGame)
  {
    // TODO: Play video
  }
}

migrator

Great!!

Thanks, it works perfect!!

SMF spam blocked by CleanTalk