Hi,
i was doing some research and made this small typewriter effect.
Just put this code in your xml and call Typewriter('yourtext',the-name-of-the-layer-where-you-want-to-show-it);
Like : TypeWriter('Hello World', txtfield2);
Code
<tw speed="0.08" />
<action name="TypeWriter">
set(t, 0);
set(twt, %1);
set(twl, %2);
set(l, get(twt.length));
delayedcall(0, DoTypeWriter());
</action>
<action name="DoTypeWriter">
subtxt(tws, get(twt), get(t), 1);
txtadd(tot, get(layer[get(twl)].html), get(tws));
set(layer[get(twl)].html, get(tot));
inc(t);
if(t LT l, delayedcall(get(tw.speed), DoTypeWriter()); );
</action>
Display More
example http://www.virtualtuur.com/krpano/typewriter/1/index.html
small question: When i want to use the 'calc' in this line: set(layer[get(twl)].html, get(tot)); it makes 0's (zero's) of the spaces or so..as you can see here: http://www.virtualtuur.com/krpano/typewriter/2/index.html
is there a work around for that?
Have fun!
Tuur