how to sum values?

m4u
23 Oct 2014, 18:36
Hi guys,

if game.value1 = 1 and game.value2 = 2, how to sum it to have a result 3 inside the game?

the values are obtained with the get input function...

Thanks,

jaynabonne
23 Oct 2014, 19:45
Answering your question literally:

game.result = ToInt(game.value1) + ToInt(game.value2)


But I wonder if you're asking something else? :)

m4u
27 Oct 2014, 17:54
Thanks Jay, it works great!