Help: Can we prevent character transition skipping?

Using Naninovel C# APIs: adding custom actor implementations or commands, overriding engine services, integrating with other systems, etc.
Post Reply
AntonioA
Posts: 12
Joined: 19 May 2021 21:39

Help: Can we prevent character transition skipping?

Post by AntonioA »

Double clicking or pressing enter ends the printer text animation and ALSO ends the character (@char) transition animation without the transition/easing (that I've set a time:1.0 for).

Is there some way to prevent continue/skipping globally for character transitions ONLY and not for the printer?
(This almost works by setting @processInput to false before the @char transition and @processInput to true after; but this isn't an elegant solution since it needs to be set every single time and also doesn't process input for the printer)

Would greatly appreciate the help.

Note: I've only tried this in the webgl sandbox so far. If there is a quick solution to this, would purchase immediately.

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: Help: Can we prevent character transition skipping?

Post by idaot »

Hello, what you are describing might be possible by disabling Complete On Continue in the Script Player Config. (Description: "Whether to instantly complete blocking (wait:true) commands performed over time (eg, animations, hide/reveal, tint changes, etc) when Continue input is activated").

If it doesn't suit your needs then it can always be overriden or modified via C#.

Image

AntonioA
Posts: 12
Joined: 19 May 2021 21:39

Re: Help: Can we prevent character transition skipping?

Post by AntonioA »

idaot wrote: 20 May 2021 09:27

Hello, what you are describing might be possible by disabling Complete On Continue in the Script Player Config. (Description: "Whether to instantly complete blocking (wait:true) commands performed over time (eg, animations, hide/reveal, tint changes, etc) when Continue input is activated").

If it doesn't suit your needs then it can always be overriden or modified via C#.

Image

Thank you for the reply.
I've seen that option in the docs. But can that be done just for the @char transitions, as I would like the printer text transitions to behave as it does currently (with the animations completing on double clicking).

AntonioA
Posts: 12
Joined: 19 May 2021 21:39

Re: Help: Can we prevent character transition skipping?

Post by AntonioA »

Would really appreciate some help on whether it can be done and how difficult it is (for @char alone).

Elringus
admin
Posts: 538
Joined: 11 May 2020 18:03

Re: Help: Can we prevent character transition skipping?

Post by Elringus »

It should be possible by overriding @char command and ignoring cancellationToken.CancelLazy conditions. Here is the guide on overriding built-in commands: https://naninovel.com/guide/custom-comm ... in-command

AntonioA
Posts: 12
Joined: 19 May 2021 21:39

Re: Help: Can we prevent character transition skipping?

Post by AntonioA »

Elringus wrote: 20 May 2021 22:11

It should be possible by overriding @char command and ignoring cancellationToken.CancelLazy conditions. Here is the guide on overriding built-in commands: https://naninovel.com/guide/custom-comm ... in-command

Thanks so much. Will try that out.

Post Reply