Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Multiple items on screen

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



  • dave1707dave1707 Mod
    Posts: 9,725

    That’s where tables come in handy.

  • Posts: 2,496

    @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.

Sign In or Register to comment.