Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Fri 27/11/2009 13:44:39

Title: Object - delete from room after use - not just become invisible
Post by: barefoot on Fri 27/11/2009 13:44:39
Hi there

I was wondering if there was a way to delete an object from a room after use..

I have 2 objects.. The first object is gunpowder. When an inv item interacts with it I make that object invisible and the gunpowder with a fuse object switches on to become visible over it..

When i use another inv (Flint) on it the gunpowder with fuse object displays the wrong text and not the gunpowder with fuse text but the underneath (gunpowder) text.

So, Im wondering if you can have an object deleted from the room after use.

Qikfire





Title: Re: Object - delete from room after use - not just become invisible
Post by: Matti on Fri 27/11/2009 13:55:37
Why don't you use one single object instead of making one disappear and another appear? Then you could insert an if-clause to check the object's view and show the text accordingly.

Other than that, Object.MergeIntoBackground() will disable an object permanently.
Title: Re: Object - delete from room after use - not just become invisible
Post by: Gilbert on Fri 27/11/2009 13:59:23
Better yet, just move the object to an off-screen location.