Subtracting from a text variable

Get help using Construct 2

Post » Tue Nov 08, 2016 11:38 am

Basically Im wondering if this sort of thing is possible.

Start of layout - Global text - set to "WORD"
on object clicked - Subtract "D" from "WORD"
Global text is now "WOR"

sorry if I'm not being clear enough
B
16
S
2
Posts: 26
Reputation: 794

Post » Tue Nov 08, 2016 12:05 pm

Image
Image
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Tue Nov 08, 2016 12:09 pm

Wow, Perfect. Thanks so much. Though I'm not sure exactly whats going on.. Mind explaining as a learning experience? :)
B
16
S
2
Posts: 26
Reputation: 794

Post » Tue Nov 08, 2016 12:23 pm

System expressions

Image



left("WORD",1) = W
left("WORD",2) = WO
left("WORD",3) = WOR
left("WORD",4) = WORD

len("WORD") = 4

left("WORD",len("WORD")-1) = left("WORD",3) = WOR
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests