Cutscenes and GUIs [SOLVED]

Started by Colxfile, Tue 14/06/2005 17:28:18

Previous topic - Next topic

Colxfile

Got a nice intro for my game coming along... During it, a GUI pops up and has its background animated to do a flashback of sorts. But I recently made it skippable using the
Code: ags
StartCutscene(eSkipESCOnly);
...
EndCutscene();

tags. It froze when I tried to skip it.

To find the problem I broke the cut-scene into two and kept moving the 'break' further back through the scripted cut-scene until it wouldn't freeze when I skipped it.
It seems that the cutscene didn't like one line in the code where I popped up a GUI. The game froze (It appears) just before the GUI would pop-up. By ending the first half of the scene before it, and starting the second half immediatey after the GUI box comes up, I've got no freeze when it is skipped. It didn't have a problem when I turned off the GUI shortly after.

Is this a bug? Or are the GUIs not supposed to be used in this way?
Always carry a UV marker pen with you. When you go to a shop or a friend's house, if you see something you like, put your name and postcode on it. If it gets stolen and subsequently recovered, the police will get in touch with you so that they can 'return' it.

Pumaman

If you don't skip it and just sit back and watch the intro, do you as the player have to press any keys or click the mouse to get past the GUI?

The StartCutscene feature basically fast-forwards your game, which means that if any player interaction is required it will hang at that point.

Colxfile

The purpose of the GUI in the cutscene is - for me - an easy way of providing a flashback of what happened. It is basically a small box, which has a picture background that is changed in the script to make a small 10 frame animation. Once it has finished, it is turned off by the script and the intro carries on its merry way. So, when I don't skip the scene, the GUI comes on and off as expected.

It just seemed to me the simplest solution to the problem of putting in a small flashback... Didn't fancy much else besides (I can be single-minded sometimes  :=)
Always carry a UV marker pen with you. When you go to a shop or a friend's house, if you see something you like, put your name and postcode on it. If it gets stolen and subsequently recovered, the police will get in touch with you so that they can 'return' it.

Pumaman

If that's the case, then SkipCutscene shoudl work with it.

Would you mind uploading the game so that I can take a look at it?

Colxfile

#4
Okay, thanks for offering to have a look.
Always carry a UV marker pen with you. When you go to a shop or a friend's house, if you see something you like, put your name and postcode on it. If it gets stolen and subsequently recovered, the police will get in touch with you so that they can 'return' it.

Pumaman

When I play it, it stops at "I remember... driving into the rough off the fairway..." and I have to click the mouse to continue -- and as I mentioned, in order for SkipCutscene to work, there can't be any required user interaction.

Perhaps changing the GUI from popup modal to "normal" is what you want to do, since by being popup modal it blocks the game.

Colxfile

Yep. That does it :) Thanks!
Always carry a UV marker pen with you. When you go to a shop or a friend's house, if you see something you like, put your name and postcode on it. If it gets stolen and subsequently recovered, the police will get in touch with you so that they can 'return' it.

SMF spam blocked by CleanTalk