playMaker

Author Topic: Deleting and object (in scene) when reloading a same level  (Read 1330 times)

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Deleting and object (in scene) when reloading a same level
« 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 ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Deleting and object (in scene) when reloading a same level
« Reply #1 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.

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Deleting and object (in scene) when reloading a same level
« Reply #2 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.