JujuAdams / Scribble

Efficient, internationalized, multi-effects text renderer for GameMaker
https://www.jujuadams.com/Scribble/
MIT License
322 stars 47 forks source link

.skip() not working as anticipated #523

Open Swimmermac135 opened 2 months ago

Swimmermac135 commented 2 months ago

I used scribble way back in the day, and I think this was how I used it then, but I need some help now :)

Here is the code I am trying to fix code1

The if statement works properly, I tested it with a debug print. It sets the skip to true for one frame then immediately back to false. I don't know if this is how it is supposed to work internally. It doesn't actually skip the fade in animation though.

This may just be me being stupid, but please help regardless as I am very lost :P

Swimmermac135 commented 2 months ago

I found a workaround, but would still like to figure this one out image

JujuAdams commented 2 months ago

First usage should be fine. Are you making any other method calls on global.DialogTypist anywhere? Are you using that typist for only one text element at a time?

Swimmermac135 commented 2 months ago

First usage should be fine. Are you making any other method calls on global.DialogTypist anywhere? Are you using that typist for only one text element at a time?

Yeah, im doing animation checks in draw GUI to see when the typewriter is done, would that cause issues?

JujuAdams commented 2 months ago

Getting values from the typewriter shouldn't affect its behaviour so hmm ... not sure what could be going wrong. I'll try to reproduce this issue in a separate project to investigate.