how to use backspace in text object?

Get help using Construct 2

Post » Sun Jul 29, 2012 3:41 am

Hello

I'm trying make when you press backspace in keyboard the last word of the text object is erased.

but I don't know how to do that.. I was trying to use replace from system object but without success. Any ideas??

B
30
S
6
G
5
Posts: 433
Reputation: 6,061

Post » Sun Jul 29, 2012 12:10 pm

Set the text to: left(text, len(text) - 1)
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Sun Jul 29, 2012 6:05 pm

I will try that! Thanks Ashley ;)

Edit: Worked, thanks again!Guif0DA2012-07-29 18:21:17
B
30
S
6
G
5
Posts: 433
Reputation: 6,061

Post » Sat Jan 03, 2015 4:16 pm

Ashley wrote:Set the text to: left(text, len(text) - 1)

Thank you ! Ashley
B
11
S
1
Posts: 84
Reputation: 1,462


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests