Multiple items on screen

Noob question, how do I draw multiple items on the screen and give them their own unique properties?

That’s where tables come in handy.

@rockinspots - you can also draw multiple things on screen by using a loop, there are a few loop types. The best thing to do is read a general introduction to Lua. I’ll try to find a good reference for you.

The simplest loop is a for loop. Try this:


For x = 1,10 do
       print(“x is : “..x)
end

If you need to do this for graphics you can draw rectangles or ellipses but you need to change the objects coordinates otherwise they are drawn over the top of each other.