## Viewing post in really confused '~' need help.

You should definitly use arrays and 'for'-loop, your code is really hard to read.

Use functions to cut your code into multiple simple operations.

Also use comments to explain which part of the code do what.

And beware, TIC implement a more formal LUA than PICO-8. That means that number are double precision floating point number and not 32bit fixed point like in PICO-8. It means that if you increament by a real number, let's say 0.34 every frame and you start from x=0 and you want to check when x==1:

```x = 0
while «condition» do
if x==1 then «do a thing» end
x = x + 0.34
end
----execution:
x==0
x==0.34
x==0.68
x==1.02 --x==1 is never checked```

if you want to use check points with floating point numbers, use intervals instead of discrete values:

```x = 0
while «condition» do
if 0.9<x and x<1.1 then «do a thing» end
x = x + 0.34
end
----execution:
x==0
x==0.34
x==0.68
x==1.02 --> 0.9<1.02<1.1 --> condition is checked !```

thank you for the help and constructive criticism. :)

i honestly am a newbie in LUA. and to be honest, the normal LUA documentation is confusing!

i just kinda picked up TIC tiny computer and started to work :)

Beg your pardon sir. But i did not fail to notice that you just speak of the Luna 32bit threshold limitations

My question is. What is the number value limit that i can reach in TIC in order to prevent overflow.

And if my memory does not fail me . The "other one" has a limit of -32768.00 to 32767.99 in number range.

If you deal only with integers, your limit is

253=9,007,199,254,740,992

beyond that, you cannot have the direct next natural number:

if I do 253+1 I will get 9,007,199,254,740,994 .