I mustn't understand something about the language, because I have no idea why this isn't working. That, or I'm having a bad day ;)
This doesn't work...
(error is: Expecting expression but encountered add sign)
This does, but seems to return the wrong thing...
(I get the same error as above without the brackets)
Everything is Local, and Int. Have I missed something in the syntax, or do I need to post more code? The rest is very, very basic.
This doesn't work...
FinalPosX = StartPosX:+OffsetX
(error is: Expecting expression but encountered add sign)
This does, but seems to return the wrong thing...
FinalPosY = (StartPosY = StartPosY + OffsetY)
(I get the same error as above without the brackets)
Everything is Local, and Int. Have I missed something in the syntax, or do I need to post more code? The rest is very, very basic.