I trying to display many identical object at once, i thought about tables of course, but cant figure out how to use them to display all that things in random coordinates or exact points
Every help is appreciated
[code][lua]_W = display.contentWidth
_H = display.contentHeight
local physics = require(“physics”)
physics.start()
physics.setGravity(0,1)
local ball = display.newCircle(_W/2,_H/2,15)
physics.addBody(ball, {friction=1,density=1,bounce=1,radius=15})
ball:setLinearVelocity(2,40)
local tablesome = {}
function createballs()
for i=1, 1,10 do
ball = display.newCircle(math.random)
end
end
[/code][/lua]
[import]uid: 16142 topic_id: 11805 reply_id: 311805[/import]
[import]uid: 52491 topic_id: 11805 reply_id: 43018[/import]