Is there a way to duplicate a whole slice collection within Hamsterscript?
I'm working on a minigame where the player has to pick associated images out of a set of sprites added to a select slice.
The question and the 5 potential answers should all be one and the same select slice + child sprites.
What I try to achieve is to create 6 copies of the "Answer slice collection" I made in the graphical editor and hook them into the question and answer slots of the "Quiz slice collection" individually.
The only thing I have found is "clone sprite (handle)" which is exactly what I would need, but for the whole collection of answers instead of a single sprite.
These are the slice collections I created in the editor:
Quiz slice collection
Code: Select all
- Panel
-- Sprite (Question slot)
-- Grid
--- Sprite (Answer slot 1)
--- Sprite (Answer slot 2)
--- Sprite (Answer slot 3)
--- Sprite (Answer slot 4)
--- Sprite (Answer slot 5)
Code: Select all
- Select
-- Sprite (Slime)
-- Sprite (Hamster)
-- Sprite (And_so_on)