playMaker

Author Topic: LoadScene Action can't load the same scene (restart the game)?  (Read 3308 times)

JACKY

  • Playmaker Newbie
  • *
  • Posts: 2
I test LoadScene & LoadLevel action both.

LoadScene & LoadLevel both can load the indicated Scene
which different from current scene.

But only LoadLevel can reload the scene which same as current Scene.

Ex.
Current Scene index is 0.
LoadLevel can load scene index 0 equal to reset the scene.
But LoadScene can't load scene index 0, but index 1 is available.

Can Someone please indicate where I am misunderstanding.

Jack

 

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: LoadScene Action can't load the same scene (restart the game)?
« Reply #1 on: July 14, 2017, 10:21:20 AM »
Hi,
In the load Scene script it checks if equal and then it will end if it is.

I noticed btw that the action is broken, so i updated it and added a 'Include Current Scene'
If this is checked then it will include

i do not know if this will be included to the next update so i renamed the files needed (just added 1 to the filenames) else they might be overwritten.

JACKY

  • Playmaker Newbie
  • *
  • Posts: 2
Re: LoadScene Action can't load the same scene (restart the game)?
« Reply #2 on: July 17, 2017, 03:36:44 PM »
Appreciate for your quick support and response.
It helped.
If the updated action could included in next version.
I think a lot of non-coding will be helped.

Jack.