-
Typewriter effect: how to scroll text upwards?
Hi all:
I’m trying to create a typewriter effect, where text appears letter by letter, and whenever an end of line is reached the text scrolls one line upwards. So far so good, but the only problem I have is that I can’t find any way to actually modify the position property. What I’m doing is:
if (character == ‘\r’) {
[position[0], position[1] – 48]
}(Where “character” is the variable that holds the current character, and “48” is the height of each text line). Surely enough, the text jumps upwards when it reaches the end of a line, but on the next frame it comes back to its initial position. It seems that “position” is a read-only property, so I can’t actually modify it by substracting 48. I’ve also tried adding an Slider Control effect as a placeholder, to store the Y value as it gets decreased… but it also seems to be read-only. How can I do this?
Thanks in advance,
Paulo.