Jibble

Author Topic: Problem with customized Cutscene skip  (Read 273 times)

Problem with customized Cutscene skip
« on: 13 Jan 2019, 01:56 »
Hi guys i'm havin a little problem and after a few tries i'm on empasse.
I have a cutscene where people walk and talk and i'd like to allow skipping it after 2-3 second of mouse down click.
The problem is that  timer doesn't work in RepExec,  neither change room and callroomscript cause the scene is in blocking, so i have to use repeatedly_execute_always where i can't use on_call and room change.
How can i manage this?


Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on a game that was nominated for an AGS Award!
Re: Problem with customized Cutscene skip
« Reply #1 on: 13 Jan 2019, 02:16 »
uhm, I'm not quite understanding the problem...

But if you have a cutscene that you want to allow be skipped after 2-3 secs. I'm going to assume that you know exactly  where that is in your cutscene, so nothing stoping you from putting a StartCutscene(...), there.

Let's say you want to put allow skipping after the first line is spoken...

Code: Adventure Game Studio
  1. function SomeCutScene()
  2. {
  3.   Npc.Say("blabla blah blah...");
  4.   StartCutscene(eSkipMouseClick); // I normally use ESConly, to avoid accidental clicks...
  5.   player.Say("but blah blaeh bligh");
  6.   Npc.Say("blabla blah blah!!!!");
  7.   EndCutscene();
  8. }
  9.  

I would do it like this, unless you want something entirely...

There are those who believe that life here began out there...

Re: Problem with customized Cutscene skip
« Reply #2 on: 13 Jan 2019, 02:51 »



But if you have a cutscene that you want to allow be skipped after 2-3 secs. I'm going to assume that you know exactly  where that is in your cutscene, so nothing stoping you from putting a StartCutscene(...), there.



No it's not that the problem, i don't wanna use internal function and i don't need that it became skippable after some time, it could be skippable anytime keeping mouse button down for 2-3 seconds.
This is an entire animated and talked cutscene, the code about delay works fine, but , i can't claim change room or on_call when the timer is gone cause it's all in blocking.

A solution could be do all with non blocking stuff but it could be really a pain, like walk in background, when arrive certain position other char say something background, a variable change  and a timer start... etc so i wonder if there's' a simple solution that i don't realize yet :)

Khris

  • having to deal with what games are going through
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on a game that was nominated for an AGS Award!
Re: Problem with customized Cutscene skip
« Reply #3 on: 13 Jan 2019, 15:02 »
i don't wanna use internal function
Why not though? It is specifically intended for that exact purpose.

If you want advice on how to best do this without the internal functions, you should at least tell us why you don't want to use them. Because if the reason is bad, your approach is completely wrong and we're all going to waste a lot of time and effort.

Snarky

  • Global Moderator
  • Private Insultant
    • Best Innovation Award Winner 2018, for his numerous additions to the AGS open source ecosystem including the new Awards Ceremony client and modules
    • I can help with proof reading
    • I can help with translating
Re: Problem with customized Cutscene skip
« Reply #4 on: 13 Jan 2019, 15:07 »
I think he means that what he wants is something different: A cutscene that you can skip (at any time) by holding down the mouse button for 2-3 seconds.

Re: Problem with customized Cutscene skip
« Reply #5 on: 13 Jan 2019, 15:22 »
Why not though? It is specifically intended for that exact purpose.

Perhaps the right word would have been “i can’t”, at least in my experience with the function, sorry.

I think he means that what he wants is something different: A cutscene that you can skip (at any time) by holding down the mouse button for 2-3 seconds.
Yes, exactly.

Re: Problem with customized Cutscene skip
« Reply #6 on: 15 Jan 2019, 16:20 »
To make an example like porting of full throttle and day of the tentacle remasetered on mobile device (i don't know if it's the same on pc).