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
1
Posts: 26
Reputation: 644

Post » Tue Nov 08, 2016 12:05 pm

Image
Image
Image
B
65
S
23
G
7
Posts: 1,504
Reputation: 10,894

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
1
Posts: 26
Reputation: 644

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
Image
B
65
S
23
G
7
Posts: 1,504
Reputation: 10,894


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, plinkie, rayolf and 10 guests