I have a level full of coins and the player has the ability to enter different layouts and return. I have an array holding 0 and 1s for each of the coins in the level but I do not know how I can destroy or remove a certain coin using its IID.
Why not make the coins persistent so when they disappear they stay gone when the player returns to the loadout?
Oh thanks, I should read into what all the behaviours do. But how would I reset a coins state to its original after the level has been completely finished?
not sure I understand correctly - you have a coin that a player gets it offers points ext and disappears.... correct? why do you want to bring it back when the level is complete...?
Develop games in your browser. Powerful, performant & highly capable.
Well level 1 is made up of multiple layouts, if the player wishes to replay a level the coins and collectables should be reset but the coins shouldn't respawn throughout moving across the level 1 layouts.
So in the event the player restarts, dies past all lives the level can simply be reset and all assets tied to it will reset also... just use system -> restart layout
here hope this helps...
r191 added an action to reset all persisting objects, that may be what you were asking.
Thanks but the persistent objects aren't reset on layout reset. Where can I find this action to reset them?
nvm I found it, thanks. Works like a charm now.