# Help. I can't create new scenes

**URL:** <https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162>\
**Category:** General\
**Created:** [July 14, 2011, 2:47am UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162 "2011-07-14T02:47:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cdasselin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cdasselin/32/388_2.png) [@Cdasselin](https://forum.choiceofgames.com/u/Cdasselin)\
**Post date:** [July 14, 2011, 2:47am UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/1 "2011-07-14T02:47:10Z")

</div>

Whenever I try to create a new scene for the game, I write the code and whatnot. Then I save it and put it in the mygame.js file but whenever I go to test this pat all I get is a permission denied error. I can make games just fine using the scenes they already made for me like startup animal etc etc. But I can’t use anything else. Ne1 no what’s wrong

---

<div class="post-metadata">

**Author:** ![KHopkins007](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KHopkins007](https://forum.choiceofgames.com/u/KHopkins007)\
**Post date:** [July 14, 2011, 9:35am UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/2 "2011-07-14T09:35:29Z")

</div>

U think u could post your entire mygame.js file. That would help to figure this out.

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [July 14, 2011, 11:45am UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/3 "2011-07-14T11:45:43Z")

</div>

Also, when you do include it, please add \<\*code\> on the line before and \<\*/code\> on the line after (minus the \*s).

---

<div class="post-metadata">

**Author:** ![Cdasselin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cdasselin/32/388_2.png) [@Cdasselin](https://forum.choiceofgames.com/u/Cdasselin)\
**Post date:** [July 14, 2011, 5:50pm UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/4 "2011-07-14T17:50:49Z")

</div>

`  
/\*  
\* Copyright 2010 by Dan Fabulich.  
\*  
\* Dan Fabulich licenses this file to you under the  
\* ChoiceScript License, Version 1.0 (the “License”); you may  
\* not use this file except in compliance with the License.  
\* You may obtain a copy of the License at  
\*  
\* [http://www.choiceofgames.com/LICENSE-1.0.txt](http://www.choiceofgames.com/LICENSE-1.0.txt)  
\*  
\* See the License for the specific language governing  
\* permissions and limitations under the License.  
\*  
\* Unless required by applicable law or agreed to in writing,  
\* software distributed under the License is distributed on an  
\* “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,  
\* either express or implied.  
\*/

// Specify the list of scenes here, separated by commas, with no final comma

nav = new SceneNavigator([  
“startup”  
,“animal”  
,“variables”  
,“gosub”  
,“ending”  
,“death”  
,“testscene”

]);

// Specify the default starting stats here

stats = {  
infamy: 0  
,name: “unnamed”  
,weapon: “unnamed”  
,current\_alias: “unnamed”  
,control: 100  
};

// Specify the stats to use in debug mode

debugStats = {  
infamy: 0  
,name: “unnamed”  
,weapon: “unnamed”  
,current\_alias: “unnamed”  
,control: 100  
};

// or just use defaults  
// debugStats = stats  
(/code)

thats my mygame.js, thank you for responding.

---

<div class="post-metadata">

**Author:** ![JimD](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jimd/32/21672_2.png) [@JimD](https://forum.choiceofgames.com/u/JimD)\
**Post date:** [July 14, 2011, 7:02pm UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/5 "2011-07-14T19:02:51Z")

</div>

You have a scene called gosub but I don’t think that is allowed. Gosub is a command used like a function within a scene. Take that out or rename it and try again.

---

<div class="post-metadata">

**Author:** ![Cdasselin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cdasselin/32/388_2.png) [@Cdasselin](https://forum.choiceofgames.com/u/Cdasselin)\
**Post date:** [July 14, 2011, 8:55pm UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/6 "2011-07-14T20:55:07Z")

</div>

Gosub was on their by default but I’ll try

---

<div class="post-metadata">

**Author:** ![Cdasselin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cdasselin/32/388_2.png) [@Cdasselin](https://forum.choiceofgames.com/u/Cdasselin)\
**Post date:** [July 14, 2011, 8:57pm UTC](https://forum.choiceofgames.com/t/help-i-cant-create-new-scenes/162/7 "2011-07-14T20:57:39Z")

</div>

Still doesn’t work.
