Creating and deleting a scene

00george

  • Posts: 161
Is it possible to make a behaviour that creates a new scene and a button that can delete a scene? If so how would you do this?

LDeathnote

  • Posts: 131
Do you mean in-game or on Stencyl when your actually making it?

00george

  • Posts: 161

Rexasul

  • Posts: 147
I doubt so. What use could you possibly have for it?
my website |>>| shadowlabs.net

captaincomic

  • *
  • Posts: 6108
I also doubt this is possible.
Although you could create an empty scene in the Scene Editor, and then, in game, create all actors and tiles that make up the scene. To "delete" the scene, remove all actors and tiles from the scene again.

00george

  • Posts: 161
Thanks I guess I could just do what you said and "reset" the scene.

Nomosoft

  • Posts: 122
Thanks I guess I could just do what you said and "reset" the scene.

If you just want to reset the scene, you can just load it, again. I don't think there's any reason to remove individual Actors or Tiles from the scene, first. Put any data you want to maintain in a game variable and reload the scene.

I'm curious what you're doing. Are you allowing users to design scenes for some reason?