Hello while i was making a project i was using the remove() function and i was wondering if there is an option to restore once it’s remove?
can you help me? I’d really appreciate it
someClip.remove() will remove the clip named “someClip”
myNewClip=someClip.clone() will create a clone of the clip named “someClip”
you can’t bring back something that has been deleted unless it’s been stored, but then that means it isn’t really deleted.
however, as blurredPixels said, you can keep a clone of the object so when you delete the original object, you can bring it back by using the clone.
and also, why do you want to bring back a deleted clip? is this like an XY problem situation or something?
does this command work once the object has already been deleted?
and thank you!
yeah well im making a trap than can be moved and once it’s touched by the enemy it will be removed
but i think it’ll have some errors i’ll figure it out soon
In that case you should probably move it off-screen and make the code in the trap not run and make it invisible. When you want it to come back move it back to position, re-enable the code and make it visible again.
That’s a great idea!
thank you