Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: QueenM56 on June 04, 2018, 06:26:15 AM

Title: How to permanently destroy an object?
Post by: QueenM56 on June 04, 2018, 06:26:15 AM
Hi,

I was wondering if I can permanently destroy an object.
For instance, a purchase button, once the purchase is done, I'd like to destroy it from the menu for good.
At the moment, it keeps come back every time the menu scene is loaded.
Could anyone help to solve the problem?

Cheers,
M
Title: Re: How to permanently destroy an object?
Post by: terri on June 04, 2018, 07:31:11 AM
You save a variable (like a bool) and either enable that button or don't when the menu scene loads.
Title: Re: How to permanently destroy an object?
Post by: QueenM56 on June 04, 2018, 10:17:05 PM
Thanks Terri, it works :)