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
33
S
7
G
5
Posts: 447
Reputation: 6,269

Post » Sun Jul 29, 2012 12:10 pm

Set the text to: left(text, len(text) - 1)
Scirra Founder
B
415
S
248
G
92
Posts: 25,284
Reputation: 200,952

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
33
S
7
G
5
Posts: 447
Reputation: 6,269

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: No registered users and 43 guests