Multiply string by number?

Get help using Construct 3!

Post » Fri Aug 04, 2017 4:26 pm

Is it possible to multiply string ?
I would like to setup a string with expression like "a" * 5 to get "aaaaa" (that's just a simple example :D ), but it's not possible, is there any other way?
B
5
Posts: 4
Reputation: 266

Post » Fri Aug 04, 2017 4:58 pm

Sorry I have not really looked at this problem in construct yet but what immediately jumped out at me is using a loop. While multiplyNumber not equal 0 apend the character to the string and set multiplyNumber to multiplyNumber - 1.
B
15
S
7
G
1
Posts: 34
Reputation: 1,793

Post » Fri Aug 04, 2017 7:39 pm

on condition, repeat "multiplyer" times, add "a" to string.
B
12
S
4
G
1
Posts: 55
Reputation: 1,027


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 1 guest