Help. I can't create new scenes


#1

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


#2

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


#3

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


#4

`
/*
* 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
*
* 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.


#5

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.


#6

Gosub was on their by default but I’ll try


#7

Still doesn’t work.