Etiene / lua.space

The Lua Community Blog
http://lua.space
81 stars 18 forks source link

small big fix in code #25

Closed karai17 closed 8 years ago

karai17 commented 8 years ago

ipairs is not reliable in the case of map.objects, so falling back on pairs is required.

karai17 commented 8 years ago

I've had several people contact me to tell me my tutorial didn't work for them and it turns out that Tiled doesn't re-order objects if you delete one, so the table ends up with holes. Because of this, I would prefer to tell people to use pairs.

Etiene commented 8 years ago

uploaded already :)

karai17 commented 8 years ago

u am hero <3

Etiene commented 8 years ago

<3