-
Typewriter with blinking Cursor/ disable Cursor
Hello,
I have this Code which gives me kinda a typewriter effect with a blinking cursor.
3 Slider Controls named: “Speed” // Speed of Typewriter “Start At” // Starting Point and “Blink Speed” // well the speed of the blinking are necessary. With Values like 25, 3, 5 I got a nice working effect.
CursorType = "_" // cursor typeF = Math.round(time*effect("Blink Speed")("Slider") % 1); // Blink Speed
L = text.sourceText.length;
T = time*effect("Speed")("Slider") - effect("Start At")("Slider")*effect("Speed")("Slider");if(F ==1 | (T0) ){Fl=CursorType;}else{Fl=" ";}
substr(0,T) + Fl
I used a few tutorials to copy this togheter and get it working. Now I want to remove the cursor at the end.
So I want it to Blink a few times in the beginning. Then type the word or sentence and not blink during this(as its already doing) and at the end the cursor and blinking is gone. I though about somehow reading out the current letter its at through index and then compare it to the text lenght ?? If possible without using any range selector.
But I don’t know how I would add this. Is there also a possibility to get a Checkbox that allows me to switch the cursor at the end on and off.
Thanks in advance
Andrés