1
Journals / Re: Deep Space
« on: December 23, 2018, 06:16:52 am »You didn’t make any back-ups or anything?Unfortunately, no.
Not to worry, however, because I have plans for a new game already!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You didn’t make any back-ups or anything?Unfortunately, no.
Enable the log viewer so you can see what errors, if any, are generated when you try to switch scene.When I click "New Game", this code pops up.
Engine.hx:1732: Switching to scene 3 Deep Space.js:39610:203
Engine.hx:1991: Layer ID: 1 does not exist Deep Space.js:39610:203
Engine.hx:1992: Putting actor inside default group Deep Space.js:39610:203
BehaviorManager.hx:135: Warning: Behavior does not exist - Spawn Deep Space.js:39610:203
uncaught exception: Error: Cannot cast null to {
__name__ : [com,stencyl,models,scene,Layer]
}
I cant do that because it would mean that whenever that scene is returned to, the player ship would be in a different spot. I'm trying to make the initial position when starting a new game random, but keep current position for if the player is (for example) returning from a planet's surface (which is a separate scene)I'm trying to spawn a player actor at a random location in the next scene. However, the next scene refuses to load due to this.
The code I'm using to load the next scene is attached. Please inform me as to what I am doing wrong.
I would simply put the creation actor code into the next scene.