Skipping text during cutscenes

  • #1, z brut69Monday, 11. July 2016, 11:55 hodinky 8 years ago
    I am having a problem guys and I could really use some help
    I am starting a cutscene where a character gives another character a tour. During the first room that they meet where the cutscene starts , the user can't skip the text by left clicking (as it should). Once the characters however change scenes (still into cutscene mode), clicking a mouse button will cause them to skip the dialog that they are having (and I dont want that as it is time specific).
    I tried setting up each change of scene as a new cutscene (ending it at change scene and starting a new one) but that creates problems.
    Any ideas why is it doing that?
    Any way to disable mouse clicking ?

    Čestný člen

    266 Posts


  • #2, z afrlmeMonday, 11. July 2016, 13:00 hodinky 8 years ago
    You should be able to toggle text skipping on & off with...
    game.AlwaysAllowSkipText = true|false


    P.S: maybe try using the hide / show mouse cursor action parts instead of the begin / end cutscene action parts. It's the same as the cutscene actions except you won't be able to skip the cutscene with the ESC key. Also no "a cutscene was started but incorrectly ended..." (something along those lines) error will be generated if you don't end the cutscene in the same scene.

    Imperátor

    7285 Posts

  • #3, z brut69Monday, 11. July 2016, 16:09 hodinky 8 years ago
    Thank you , I will try it and let you know

    Čestný člen

    266 Posts

  • #4, z brut69Monday, 11. July 2016, 17:23 hodinky 8 years ago
    This doesn't work...
    I set "Execute Script" then I put the code inside as true and it still lets me skip text

    Čestný člen

    266 Posts

  • #5, z afrlmeMonday, 11. July 2016, 17:59 hodinky 8 years ago
    true = skip, false = don't skip.

    Imperátor

    7285 Posts

  • #6, z brut69Tuesday, 12. July 2016, 07:55 hodinky 8 years ago
    That was my 2nd try once it wasn't working but it is still not working... cry

    Čestný člen

    266 Posts

  • #7, z brut69Tuesday, 12. July 2016, 07:58 hodinky 8 years ago
    I get this error
    
    
    [string "Start: Start Part: Execute script 'game.Alway..."]:2: attempt to index global 'game' (a userdata value)
    8:57:06 AM: stack traceback:
    	[string "Start: Start Part: Execute script 'game.Alway..."]:6: in function '__newindex'
    	[string "Start: Start Part: Execute script 'game.Alway..."]:2: in function <[string "Start: Start Part: Execute script 'game.Alway..."]:1>
    	[C]: in function 'xpcall'
    	[string "Start: Start Part: Execute script 'game.Alway..."]:1: in main chunk
    

    Čestný člen

    266 Posts

  • #8, z afrlmeTuesday, 12. July 2016, 12:54 hodinky 8 years ago
    I just tried in 4.2.5 & it's working fine for me.
    game.AlwaysAllowSkipText = false
    

    Where are you executing the execute a script action part?

    By the way, you can determine if text is skippable or not (for cutscenes / hide cursor events) on the main game (cog) tab via the "Always allow to skip text" checkbox.

    Imperátor

    7285 Posts

  • #9, z brut69Tuesday, 12. July 2016, 13:32 hodinky 8 years ago
    "Always allow to skip text" is not ticked in the main menu
    Here is a screen shot of where it works and where it bugs out, thank you for all your help grin , I am really close to releasing the demo and this is one of the main "bugs"

    Čestný člen

    266 Posts

  • #10, z brut69Tuesday, 12. July 2016, 13:33 hodinky 8 years ago
    I tried switching to another hero , still the same

    Čestný člen

    266 Posts

  • #11, z ElobranieTuesday, 12. July 2016, 14:13 hodinky 8 years ago
    wink wink wink

    Bažant

    1 Posts