Search found 4 matches

by leyohla
Wed May 20, 2020 7:56 am
Forum: Support and Development
Topic: For loop problem
Replies: 11
Views: 8336

Re: For loop problem

Thanks so much :) @sphyrth
by leyohla
Tue May 19, 2020 4:03 pm
Forum: Support and Development
Topic: For loop problem
Replies: 11
Views: 8336

For loop problem

Sorry to post again on a similar question but I've been racking my brain and internet all day but still totally unsure of what I am doing wrong here... balls = {} function addBalls(x, y) local ball = Ball:init(x, y) table.insert(balls, ball) for i in ipairs(balls) do love.graphics.draw(ball.x, ball....
by leyohla
Tue May 19, 2020 7:47 am
Forum: Support and Development
Topic: Help with spawning multiple objects
Replies: 5
Views: 3987

Re: Help with spawning multiple objects

Actually I didn't take cs50, I am taking gd50 their course in games development so I'm totally new to Lua.
Thanks for the help
by leyohla
Mon May 18, 2020 4:13 pm
Forum: Support and Development
Topic: Help with spawning multiple objects
Replies: 5
Views: 3987

Help with spawning multiple objects

Hello, I was wondering if someone could help me out with spawning objects I am trying to make another ball spawn once two objects collide with one another, through my 'addBalls' function (file found here): Ball.lua balls = {} function addBalls(x, y) local ball = {} ball.width = 8 ball.height = 8 bal...