How to Disable a Script in Defold Without Removing Other Components

Or create a generic “handheld item” which just handle sprite/collisison via an object properties. So you have 1 game object for ALL your items. Then when you need to actually throw it, replace it with the scripted specific gameobject.

But as stated, with a little state machine and just importing different modules in your scripted item, you should already have just one gameobject for ALL items…

3 Likes