I have sprite class in c binding to lua and in lua code i have some bullets, and all the bullets have the event update but if we create multiple bullets how can we access each bullet with the same name in c.
for i = 1, 5 do
bullet= Sprite.new()
bullet:Name("bullet")
end
in c i call lua_getglobal(L, "bullet"); and i get just one from the top of the stack , there is any way to call individual bullets from lua to c. thank you
sorry my English.