How do I multiply two global variables?

Get help using Construct 2

Post » Mon May 19, 2014 9:48 am

hi

i am having two global variables , both contain different values.
and the result should be multiplication of both.
how to do it?
B
3
S
1
Posts: 18
Reputation: 361

Post » Mon May 19, 2014 9:51 am

use the *

GlobalVariable1*GlobalVariable2
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Mon May 19, 2014 10:00 am

lolpaca wrote:use the *

GlobalVariable1*GlobalVariable2


thanks for reply
actually m also using * sign but it throws me syntax error bcoz u can not directly use * sign
you should use it along with () brackets.
problem solved :D
B
3
S
1
Posts: 18
Reputation: 361

Post » Mon May 19, 2014 10:15 am

maybe use:
int(var1) * int(var2)
B
5
Posts: 24
Reputation: 280


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 8 guests