Ideally I’d be able to design the way the pickups are laid out visually. I was initially thinking of using a factory, but they allow only one game object to be spawned at a time.
Maybe the pickups have to be laid out by code, rather than positioned in the editor?
I would have done it another way with coding indeed, and it simply means doing like this.
local arrangements = {
vmath.vector3(1,1,0),
vmath.vector3(-1,-1,0),
vmath.vector3(1,-1,0),
vmath.vector3(-1,1,0),
vmath.vector3(0),
}
local distance = 16
local function spawn(base_position)
for i = 0, #arrangements do
local pos = arrangements[i] * distance + base_position
factory.create("/game#coinsfactory, pos)
end
end
This will simply create five coins in a square shape around the player, and the best part is that this is highly configurable, so. you can just decide on the shapes you want to spawn the coins in.
(writing code is a difficult job on mobile )
Spawning each coin with a factory using a position from a table is the way to go. But you can still use some external tool to create the arrangement. A spreadsheet document or a tool within the game.