Hi there! Nice to meet you all.
I’ve just started out with a small project to get the hang of Defold but I’ve come up against my first problem.
I want to create a grid in a set position on my screen, so I’ve created a factory and I’m writing the factory script. I want each line sprite to have a position property I don’t know if this is the correct way to do it but when I build my project this is the error I’m getting in the console
WARNING:GAMESYS: Maximum number of collisions (64) reached, messages have been lost. Tweak "physics.max_collisions" in the game.project file.
WARNING:GAMESYS: Maximum number of contacts (128) reached, messages have been lost. Tweak “physics.max_contacts” in the game.project file.
ERROR:GAMESYS: Sprite could not be created since the buffer is full (128). Increase the ‘sprite.max_count’ value in game.project
ERROR:GAMEOBJECT: Could not spawn an instance of prototype /main/V_borderLineGO.goc.
also this is my script code
go.property(“right_x”, 101)
go.property(“right_y”, 368)
go.property(“right_Pos”, msg.url())
go.property(“left_x”, 321)
go.property(“left_y”, 368)
go.property(“left_Pos”, msg.url())
function init(self)
factory.create("#V_border_factory", vmath.vector3(self.right_x, self.right_y, 1), nil, {}, 1)
factory.create("#V_border_factory", vmath.vector3(self.left_x, self.left_y, 1), nil, {}, 1)
end
function update(self, dt)
for i = 1, 10 do
self.id = tostring(i)
self.rightBorder_x = (self.right_x + 4) * i
self.rightBorder_y = (self.right_y + 22) * i
self.rightBorder_pos = vmath.vector3(self.rightBorder_x, self.rightBorder_y, 1)
factory.create("#V_border_factory", rightBorder_pos, nil, {}, 1)
end
end