Reset Button...again

Hi everyone.

I have created a seek and find; after finding all the items, it loads a second WSC that says the game is completed.

On that second WSC, I want a reset button (a sprite) that will take them back to the first scene, basically restarting the game. On the mousedown of the Sprite, I have the following code:

wade.loadScene('Scene1.wsc', null, null, true);

I end up with the following error message:

Failed to load JSON data from Scene1.wsc : SyntaxError: Unexpected token < in JSON at position 0

Unable to Load JSON file Scene1.wsc


Any idea what I should do?





All 2 Comments


That error usually indicates taht you're trying to load a file that doesn't exist / is not available.

Have you checked that the file name is exactly the same, including the capital S? (upper / lower case is important)


OMG, you're a genius! 



Post a reply
Add Attachment
Submit Reply
Login to Reply