Arrays in Lua are 1-indexed, not 0-indexed, so unless you specifically set something at bullets.x[0], that will return nil and cause your error. You probably want your for loop to start at 1.
[Please log in to post a comment]
Arrays in Lua are 1-indexed, not 0-indexed, so unless you specifically set something at bullets.x[0], that will return nil and cause your error. You probably want your for loop to start at 1.
[Please log in to post a comment]