Move sprite to Center of screen - maths not working

Hello again.

Another puzzler - I believe it's quite simple to get one's sprite centered - see pics.
But the value always returns as 0 .
If I put in mathematical values, I get the correct answer.

The top row results in 0.
However, if I look at each value, it has a value, eg, 211.
The first value is greater than the second.
How could it return 0 ?
The second row is basically the same equation, with numerical values. It returns the correct answer.


Use a value function for the calculations instead of the global init.

It's too early.

1 Like

That seems to have done it. Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.