Multiple typewriter lines after one action
Devianex
04 Nov 2013, 00:48Hello everyone!
I just started using this tool last night, and I'm looking for a little assistance with my ending. I am trying to have 23 lines of text (typewriter effect) appear after opening the final safe, in addition to a picture and sound effect playing. Currently the sound and picture are working fine.
Here's the issue with the text: I have each line set to start at a 10 second interval from the last line, and the first line starts 10 seconds after the last action is made (the same one that prompts the sound/picture). For whatever reason, the game is either not calculating the 10 second intervals right, or is skipping lines entirely. On last test, I lost 8 out of 23 lines, and some lines started while others were still typing out even though nothing should overlap with the large interval I set.
It goes like this...
After opening the object:
Show picture: surprise.jpg
Play sound: TARDIS sound.mp3
After 10 seconds, run script: typewriter @50 ms
After 20 seconds, run script: typewriter @50 ms
(x23)
After 230 seconds, run script: finish the game
Some lines are set to type slower than others, but they're all 10 seconds apart. I originally tried embedding each typewriter action within the script before it, but then it wouldn't do it at all. Really appreciate any veterans help, as this is a very personal project for me, and is intended for only one person otherwise I would share for anyone to test and critique.
I just started using this tool last night, and I'm looking for a little assistance with my ending. I am trying to have 23 lines of text (typewriter effect) appear after opening the final safe, in addition to a picture and sound effect playing. Currently the sound and picture are working fine.
Here's the issue with the text: I have each line set to start at a 10 second interval from the last line, and the first line starts 10 seconds after the last action is made (the same one that prompts the sound/picture). For whatever reason, the game is either not calculating the 10 second intervals right, or is skipping lines entirely. On last test, I lost 8 out of 23 lines, and some lines started while others were still typing out even though nothing should overlap with the large interval I set.
It goes like this...
After opening the object:
Show picture: surprise.jpg
Play sound: TARDIS sound.mp3
After 10 seconds, run script: typewriter @50 ms
After 20 seconds, run script: typewriter @50 ms
(x23)
After 230 seconds, run script: finish the game
Some lines are set to type slower than others, but they're all 10 seconds apart. I originally tried embedding each typewriter action within the script before it, but then it wouldn't do it at all. Really appreciate any veterans help, as this is a very personal project for me, and is intended for only one person otherwise I would share for anyone to test and critique.
george
04 Nov 2013, 02:24Are you using the web player? From what I understand there are some issues with timers online currently that make them unreliable.
Devianex
04 Nov 2013, 03:34I am using the web player, actually! That's a huge relief, I'll test it later after downloading and see if that fixes it!

Pertex
04 Nov 2013, 12:09In my opinion you cant use the texeffects in that way at the moment. First there is an open issue that the typewriter becomes slower and slower when typing long texts. And you can't coordinate several typewriter outputs. Using timers doesn't make sense because the timers are different in the offline and online player. You must rewrite the Javascriptcode for this effect in a local routine and when the text is printed to the screen, you can send a message to your aslx code so that you can start the next typewriter line
Devianex
04 Nov 2013, 15:21I did notice that at least the timers work offline, but you're right that it gets slower and slower. I think this will still work for me, however, as I only have one line each so the interval allows most lines to be completely typed out before the next one begins. If there's a way to make this work on the web player, that would still be ideal 
