Playmaker Forum

PlayMaker News => General Discussion => Topic started by: JACKY on July 13, 2017, 11:03:59 PM

Title: LoadScene Action can't load the same scene (restart the game)?
Post by: JACKY on July 13, 2017, 11:03:59 PM
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

 
Title: Re: LoadScene Action can't load the same scene (restart the game)?
Post by: djaydino 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.
Title: Re: LoadScene Action can't load the same scene (restart the game)?
Post by: JACKY 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.