The only reason I started this topic, was because, when I first tried to change the value of green.points by adding to it 2*green.points from pressing x2, didn't change anything in the 1st string. This is the only thing I am looking for. The only question I have. What expression to use, to be able to change green.points value ?
My command is:
On x2 pressed: Add green.points to green.points
On x2 pressed gain ( else ) subtract green.points from green.points
And doesn't change anything! Only to the global2, because there is only math, and one number created by adding all points from all objects.
But string 1 ( global 1 ) contains name also. in this way: green.name&green.points&green.weight.
When x2 is pressed, it doesn't add value to green.points. Why? This was my very first question.
How do I double the value of a variable which is already set to a String? The value of this variable it doubles, in the project, but this change doesn't apply to the string where it's initial value is set. Why?