its a...
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.
thanks @2bitchuck!
[Please log in to post a comment]