hello! i started learning Lua and Love a few days ago, and ive been working on a rhythm game project that i've always wanted to make
anyway.
ive looked around for this and it all seems pretty complicated and shit just goes over my head when theres so many words in front of me XD and i have to try to apply other peoples specific experiences to mine
could i get a breakdown on how to spawn an object using a table? i want a note to spawn on the far right and arrive at the strum line in a certain amount of seconds (im pretty sure i know how to do that but if anyone would like to help i would be very grateful )
thank you in advance
so far what it looks like
https://cdn.discordapp.com/attachments/ ... -51-26.mp4
Help spawning objects?
Re: Help spawning objects?
Code: Select all
objects= {}
function newObject (x, y, vx, vy)
local obj = {x=x, y=y, vx=vx, vy=vy}
return obj
end
table.insert (objects, newObject (1,2,3,4))
table.insert (objects, newObject (2,3,4,5))
- Amatereasu
- Prole
- Posts: 9
- Joined: Wed May 10, 2023 6:30 am
Re: Help spawning objects?
lotsa words, thank you! ill try this when i get home to my PCdarkfrei wrote: ↑Wed May 10, 2023 2:25 pmCode: Select all
objects= {} function newObject (x, y, vx, vy) local obj = {x=x, y=y, vx=vx, vy=vy} return obj end table.insert (objects, newObject (1,2,3,4)) table.insert (objects, newObject (2,3,4,5))
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests