Hi!
In our baloon shooter game we sometimes need more than 50 baloons in our lvl, so we thought a grid with a repeater would be the perfect choice. Unfortunately with a grid the baloons won’t behave like they should, even if the grid/baloons itself get displayed correctly.
e.g. they don’t pop when they get hit by an arrow, or collision-sounds/effects start even if you miss them.
If we just add the baloons individually, everything works fine.
So my questions. Why is that the case and what can I do, to make them behave correctly?
Are there other ways, to comfortably add multiple entities (that behave correctly) in a certain shape? e.g. if I want 20 baloons that form a circle, or would I have to add every single baloon separately?
That would be the code of our grid (nothing special):
Grid {
x: parent.width / 2.5; y: parent.height / 5
rows: 6; columns: 10; spacing: 5
Repeater {
model: 60
Baloon { }
}
}
Cheers,
Simon