Display the last five news items

Get help using Construct 2

Post » Sun Oct 20, 2013 9:12 pm

Say I have a text object representing the news. Between each news item is a newline. How do I delete the first news item? I understand I'll need to append the new news item.
B
9
S
3
G
1
Posts: 191
Reputation: 1,725

Post » Sun Oct 20, 2013 9:39 pm

set text to right(text.text,len(text.text)-find(text.Text,newline)-1)
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786


Return to How do I....?

Who is online

Users browsing this forum: Rudi55 and 5 guests