How do I create a horizontal scrolling without text wrap.

Get help using Construct 2

Post » Fri Apr 10, 2015 3:05 pm

I'm having a problem creating a horizontal scrolling text. I have a text that can be change in length, could be long sentence or a short one. I can't get a way to have all the text to be just one line (not wrap), the textbox always wraps the text. How can I accomplish this? I'm attaching a capx as an example. Thanks in advance!

https://www.dropbox.com/s/k9pieuuqinrbj ... .capx?dl=0
B
5
S
1
Posts: 28
Reputation: 433

Post » Fri Apr 10, 2015 3:32 pm

....set text to .... right(Text.Text,(len(Text.Text)-1))
capx:

http://s000.tinyupload.com/index.php?fi ... 6870764087
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Sun Apr 12, 2015 2:16 pm

Thanks for the response! Nice trick, it works! I was wondering if the movement of the text could be smoother since this solution adds character by character the movement is a little choppy. Thanks in advance.
B
5
S
1
Posts: 28
Reputation: 433

Post » Sun Apr 12, 2015 6:10 pm

Here's how to do that with your own custom font (I think I've posted this 4 times this week now ;p). You'll notice there's a little more control like pausing the text just by adding a "*" in the scroller text. You can add your own rules in this manner so you gain more control for fancier stuff ;)

news ticker type thing
B
15
S
5
G
7
Posts: 876
Reputation: 5,650


Return to How do I....?

Who is online

Users browsing this forum: dop2000, fens, StefanN and 34 guests