TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Creating and deleting a scene
Pages:
1
Creating and deleting a scene
00george
Posts: 161
April 17, 2012, 01:15:05 pm
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
April 17, 2012, 01:17:01 pm
Do you mean in-game or on Stencyl when your actually making it?
00george
Posts: 161
April 17, 2012, 01:18:01 pm
I mean ingame
Rexasul
Posts: 147
April 17, 2012, 01:21:37 pm
I doubt so. What use could you possibly have for it?
my website |>>|
shadowlabs.net
captaincomic
Posts: 6108
April 17, 2012, 01:25:52 pm
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
April 17, 2012, 01:32:18 pm
Thanks I guess I could just do what you said and "reset" the scene.
Nomosoft
Posts: 122
April 17, 2012, 01:59:14 pm
Quote from: 00george on April 17, 2012, 01:32:18 pm
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?
Pages:
1