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
32
S
6
G
5
Posts: 437
Reputation: 6,119

Post » Sun Jul 29, 2012 12:10 pm

Set the text to: left(text, len(text) - 1)
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

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
32
S
6
G
5
Posts: 437
Reputation: 6,119

Post » Sat Jan 03, 2015 4:16 pm

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

Thank you ! Ashley
B
12
S
1
Posts: 84
Reputation: 1,487


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, ChesVCF, R0J0hound, trance, zenox98 and 19 guests