Discuss Scratch
- Slipknife
-
35 posts
Multiple Scenes?
In a lot of game engines, you can typically make multiple scenes for different parts of your game.
I was thinking we could have multiple different scenes (basically multiple projects in one) that can have their own set of sprites, code, stages and different variables.
To switch between different stages, it could be very simple. I'll also include an example of using different scenes too.
An example could be different levels in somebody game. For example:
As for variables. Currently in Scratch, you can set something to two different types of variable (not including Cloud):
For this sprite only and For all sprites
I think that underneath those two options, if you have more than one scene, two more options should appear:
For this scene only and, you guessed it, For all scenes
Got a feeling Scratch won't add this, but if they do it could be super useful for splitting up people's games into multiple sections instead of having all of their sprites and stages in one giant mess.
Cheers!
VERY Late Edit: I can't really be bothered to completely rewrite this, so I urge anyone browsing this discussion to please please PLEASE read all of the comments! This initial post isn't completely clear and me and some other Scratchers flesh it out later on down the line.
I was thinking we could have multiple different scenes (basically multiple projects in one) that can have their own set of sprites, code, stages and different variables.
To switch between different stages, it could be very simple. I'll also include an example of using different scenes too.
switch to scene [ v]
An example could be different levels in somebody game. For example:
when I receive [GameStart v]
switch to scene [Level 1 v]
As for variables. Currently in Scratch, you can set something to two different types of variable (not including Cloud):
For this sprite only and For all sprites
I think that underneath those two options, if you have more than one scene, two more options should appear:
For this scene only and, you guessed it, For all scenes
Got a feeling Scratch won't add this, but if they do it could be super useful for splitting up people's games into multiple sections instead of having all of their sprites and stages in one giant mess.
Cheers!
VERY Late Edit: I can't really be bothered to completely rewrite this, so I urge anyone browsing this discussion to please please PLEASE read all of the comments! This initial post isn't completely clear and me and some other Scratchers flesh it out later on down the line.
Last edited by Slipknife (Aug. 11, 2022 06:06:08)
- MrFluffyPenguins
-
1000+ posts
Multiple Scenes?
deleted
Last edited by MrFluffyPenguins (Aug. 11, 2022 14:58:00)
- Slipknife
-
35 posts
Multiple Scenes?
I figured it could be very useful for organising bigger games too. Support! It would be very useful for making seperate worlds in a game to have different enemies and backdrops and such.
- DataLabGames
-
100+ posts
Multiple Scenes?
Kind of reminds me of ScratchJr. I'm not sure if I support, because it seems kind of pointless to me (you can just use a variable), but it might make things slightly easier for new scratchers. So, semi-support.
- Slipknife
-
35 posts
Multiple Scenes?
I have a feeling you don't fully understand my suggestion. Kind of reminds me of ScratchJr. I'm not sure if I support, because it seems kind of pointless to me (you can just use a variable), but it might make things slightly easier for new scratchers. So, semi-support.
It's basically having loads of different scratch projects all in one big project, and each one can interact with each other.
You could have a scene called “Menu” with all of the sprites code and data for the main menu. Once you click something on the menu scene, it could initiate another scene. For example a map for a game. You could have a scene per level, and each level would have their very own sprites etc. It's basically hot swapping projects.
There is absolutely no way you can just “use a variable”.
Last edited by Slipknife (June 19, 2020 02:39:41)
- --Explosion--
-
1000+ posts
Multiple Scenes?
Total support! This is not workaroundable for the most part, a complicated game could be almost impossible to pause start new scenes and resume others, not to mention that the code would become a total mess. This still needs design though, if anyone could make mockups of their ideas that would be great.
- -Exphire-
-
1000+ posts
Multiple Scenes?
Here is a link to a mock-up I made…
It isn't that good, but I didn't really try that hard… I will probably work more on it later.
tell me what you think I could add or work on.
It isn't that good, but I didn't really try that hard… I will probably work more on it later.
tell me what you think I could add or work on.
- ioton
-
500+ posts
Multiple Scenes?
Is there like, a button to create a new scene in the editor?
No support, because this is too complex for Scratch's actual purpose, and this is easily workaroundable.
You can just change backdrops and hide buttons whenever you want to switch from the menu screen to the game itself.
So, no support.
I don't think many people need this feature.
Also, simply broadcasting and making custom blocks that just switch the backdrops and hide/show sprites isn't that messy.
No support, because this is too complex for Scratch's actual purpose, and this is easily workaroundable.
You can just change backdrops and hide buttons whenever you want to switch from the menu screen to the game itself.
So, no support.
I don't think many people need this feature.
Why do you need to randomly pause scenes in the middle of whatever you're doing? Total support! This is not workaroundable for the most part, a complicated game could be almost impossible to pause start new scenes and resume others, not to mention that the code would become a total mess. This still needs design though, if anyone could make mockups of their ideas that would be great.
Also, simply broadcasting and making custom blocks that just switch the backdrops and hide/show sprites isn't that messy.
- thr565ono
-
100+ posts
Multiple Scenes?
Support, but it is workaroundable
Use 1 backdrop per “scene”
Use:
When my scene -> Run
and for all other scenes:
When another scene run.
Hide sprite
Stop all
Use 1 backdrop per “scene”
Use:
when backdrop switches to [ v]
When my scene -> Run
and for all other scenes:
When another scene run.
Hide sprite
Stop all
- Nambaseking01
-
1000+ posts
Multiple Scenes?
Where do you write the code for the actual scenes? Any particular GUI or separate areas?
- mlcreater
-
1000+ posts
Multiple Scenes?
But—the current scene would just be a variable and you can already make those..
- Nambaseking01
-
1000+ posts
Multiple Scenes?
But—the current scene would just be a variable and you can already make those..
Variables contain data, and scenes, if I'm understanding it correctly, contain entire backdrops, sprites, and code.
- timothpp10
-
23 posts
Multiple Scenes?
Why not create a new type of projects, “projects groups”, witch use your idea ?
and
instead of
thogether grouped in a new category in projects groups ?
go to project [game v]
(variable::obsolete) // red for shared variables
and
when project is opened::hat
instead of
when green flag clicked
thogether grouped in a new category in projects groups ?
Last edited by timothpp10 (July 3, 2020 20:51:10)
- ampara
-
92 posts
Multiple Scenes?
In a lot of game engines, you can typically make multiple scenes for different parts of your game.
I was thinking we could have multiple different scenes (basically multiple projects in one) that can have their own set of sprites, code, stages and different variables.
To switch between different stages, it could be very simple. I'll also include an example of using different scenes too.switch to scene [ v]
An example could be different levels in somebody game. For example:when I receive [GameStart v]
switch to scene [Level 1 v]
As for variables. Currently in Scratch, you can set something to two different types of variable (not including Cloud):
For this sprite only and For all sprites
I think that underneath those two options, if you have more than one scene, two more options should appear:
For this scene only and, you guessed it, For all scenes
Got a feeling Scratch won't add this, but if they do it could be super useful for splitting up people's games into multiple sections instead of having all of their sprites and stages in one giant mess.
Cheers!
I support this! This would require modifications to the GUI however, and I don't know if the Scratch Team would be open to this.
By the way, this site has scenes (and other really good blocks). If you'd like to see how it would work, check it out! https://playentry.org/ws#
- lisa_wolfgang
-
100+ posts
Multiple Scenes?
This could be a set of tabs at the top of the sprites/backdrops area:


- Slipknife
-
35 posts
Multiple Scenes?
*snip* If you'd like to see how it would work, check it out! https://playentry.org/ws#This is exactly my idea!
Last edited by Slipknife (July 4, 2020 21:58:15)
- Slipknife
-
35 posts
Multiple Scenes?
Why not create a new type of projects, “projects groups”, witch use your idea ?go to project [game v](variable::obsolete) // red for shared variables
andwhen project is opened::hat
instead ofwhen green flag clicked
thogether grouped in a new category in projects groups ?
That seems a little more confusing than my idea, and doesn't really capture what Scratch is for.
Scenes are a much easier to use system, and they're pretty much a very simple way to clean up your project's code.
- MrFluffyPenguins
-
1000+ posts
Multiple Scenes?
deleted
Last edited by MrFluffyPenguins (Aug. 11, 2022 14:58:08)