I notice I have to write "pos.x = pos.x + 1"
instead of "pos.x += 1".
Will there be these shorthand expressions at some point in the future?
Also sorry if I couldn’t see anything online or if there’s preferences to change in Defold, but also why does it remove the indent in a line of code when I press enter?
--|--| indent
--| pressed enter
--|--| -cursor here
--|--|
I press enter so I can add the end
.
now instead of pressing arrow key up and writing code with proper indentation, I start writing right there.
I suppose that has me fooled, thinking I will have to manually correct the indentation. but once I complete the function with the brackets, it corrects itself.
If I set my own variable, it will correct itself when I press enter.
I just feel it makes things difficult for me as I don’t think it should remove an indent automatically.