-
How can you slow down dynamic text scrolling?
I'm creating a relatively long text which I'd like to disappear as soon as the music quits playing, but I've no idea how to approach the problem of slowing it down so it can be read at a coherent speed. Turning down the framerate makes it very choppy
I'm using
Code:
my_txt.scroll++;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
and its obviously not allowing the time to be read as it should.
I've just seen an example somewhere else using math.abs, but if someone could provide me with a simpler idea I'd be very grateful
-
Senior Member
there are other ways to run things less often than turning the framerate down. see, for example, setInterval
or, you could try to wrap it in one extra container, then make it bigger, and scale that container down accordingly - this way the code you already have will take more time to finish.
Last edited by realMakc; 05-22-2016 at 09:43 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|