Or you could make the int a float variables instead of int. Float can never have decimals. To do this, get the name of your current variable, delete it. In Global Code, type float variable. Replace variable with the name of your variable.
False! A float IS a real number (float as in "floating point"). A double is also decimal number but can contain larger numbers with higher precision in the decimals, (double stands for "double precision"). The use of an integer in this case is appropriate. Sorry for the contradiction Hblade...
SPRITE WARRIOR: Free, open-source & crossplatform pixel art editor (currently under construction).