Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Hugo111 on October 10, 2017, 01:25:57 PM

Title: Deleting and object (in scene) when reloading a same level
Post by: Hugo111 on October 10, 2017, 01:25:57 PM
Hi, I have a problem Deleting and object or action (in scene) when reloading the  same level, is there and action that exists to do this (there are loads the do the opposite ! ) So it just has to faction just once in the first then no replay in the second ! Any ideas ?
Title: Re: Deleting and object (in scene) when reloading a same level
Post by: djaydino on October 10, 2017, 09:22:18 PM
Hi, if you only want to do this in the same game session use a global bool variable.
If you want to do this also for the next game sessions,
Use playerprefs bool or easy save bool.

At the start set a bool test (false) and on the first time after bool test,
Show the object and then set bool to true.

Next time (reload) it should do the bool test again and it should test as true.
Now you can disable the object.
Title: Re: Deleting and object (in scene) when reloading a same level
Post by: Hugo111 on October 23, 2017, 11:31:30 AM
HI in this case, it is  returning to the same scene, or a previous scene in the same game I'm not sure I know how to do this...ive looked for youtube  examples but cant find any ? ... the start set a bool test (false) and on the first time after bool test,
Show the object and then set bool to true.