playMaker

Author Topic: How to permanently destroy an object?  (Read 1469 times)

QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
How to permanently destroy an object?
« 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

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: How to permanently destroy an object?
« Reply #1 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.

QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
Re: How to permanently destroy an object?
« Reply #2 on: June 04, 2018, 10:17:05 PM »
Thanks Terri, it works :)