Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a level editor for a game?
- FateSealer
-
100+ posts
How to make a level editor for a game?
Dear Scratchers,
I am trying to develop a dungeon game, where you can kill spiders and collect items:
https://scratch.mit.edu/projects/317120953/
The first level of the game seems to work well, so I started to think about a level editor. Obviously, I need more levels to make my game complete.
So, is there anyone who has experience with writing a level editor? What are the most important concerns about it? What are the mistakes that I may commit? Are there any guiding rules (ideas/advice)? Simply put, how would you do that?
Thanks,
FateSealer
I am trying to develop a dungeon game, where you can kill spiders and collect items:
https://scratch.mit.edu/projects/317120953/
The first level of the game seems to work well, so I started to think about a level editor. Obviously, I need more levels to make my game complete.
So, is there anyone who has experience with writing a level editor? What are the most important concerns about it? What are the mistakes that I may commit? Are there any guiding rules (ideas/advice)? Simply put, how would you do that?
Thanks,
FateSealer
- game_pr0grammer
-
500+ posts
How to make a level editor for a game?
What is a lvl editor?
how have you been on scratch this long and the name is quite self-explanatory
- FateSealer
-
100+ posts
How to make a level editor for a game?
In my game, you enter the first level of the dungeon. After
Of course, the levels of the dungeon must be different different in:
- shape of the level of the dungeon
- number and type of the enemies
- place of artifacts
- place and amount of gold
- place of keys and doors
But, of course, I am not going to code each level separately, because it would be completely meaningless. I must create a level editor in order to avoid unnecessary coding.
Several commercial strategy games have level editors. You can use them to customize the map of the game, or create completely new maps. Simply put, level editors are the same as map editors.
- killing all spiders and scorpions
- collecting all items (swords, bows, armors)
- collecting all gold
- collecting the potions (health, mana, rejuvenation)
- getting all the keys for the doors
Of course, the levels of the dungeon must be different different in:
- shape of the level of the dungeon
- number and type of the enemies
- place of artifacts
- place and amount of gold
- place of keys and doors
But, of course, I am not going to code each level separately, because it would be completely meaningless. I must create a level editor in order to avoid unnecessary coding.
Several commercial strategy games have level editors. You can use them to customize the map of the game, or create completely new maps. Simply put, level editors are the same as map editors.
Last edited by FateSealer (June 15, 2019 18:10:05)
- 098765432154321
-
500+ posts
How to make a level editor for a game?
https://scratch.mit.edu/projects/23646743/
Try that engine
Try that engine
- axisjack
-
100+ posts
How to make a level editor for a game?
In my game, you enter the first level of the dungeon. Afteron the first level, the player goes down to the next level (so, deeper in the dungeon). After completing the second level, it should go to the third level, and so on.
- killing all spiders and scorpions
- collecting all items (swords, bows, armors)
- collecting all gold
- collecting the potions (health, mana, rejuvenation)
- getting all the keys for the doors
Of course, the levels of the dungeon must be different different in:
- shape of the level of the dungeon
- number and type of the enemies
- place of artifacts
- place and amount of gold
- place of keys and doors
But, of course, I am not going to code each level separately, because it would be completely meaningless. I must create a level editor in order to avoid unnecessary coding.
Several commercial strategy games have level editors. You can use them to customize the map of the game, or create completely new maps. Simply put, level editors are the same as map editors.
Cant you reuse the code from previous lvl but with different data?
- codeman1044
-
1000+ posts
How to make a level editor for a game?
I would recommend making either multiple lists or an array, which is -simply put- a list of lists. That way you can store all of the data on the lists/array and access it easily. Each new item would represent a new level.
Last edited by codeman1044 (June 15, 2019 20:19:44)
- colinmacc
-
1000+ posts
How to make a level editor for a game?
Firstly, you need to find a simple way to store each level. What I do is store each level as a string of characters in a list called Levels. It's worth noting that if you add entries to a list in editor mode, and then you save the project, the contents of the list are also saved, so you can create and store levels in lists and you don't have to build them programmatically.
Then for each level, I transpose the corresponding entry from Levels into a list called “This_Level”.
So for example if you know your map dimensions (height and width), you can simply loop through the list and stamp/clone sprites to create the level. I have done this in a couple of my projects, but probably the one most similar to yours is on my test account..
Puzzle Labyrinth Remix (with Editor)
Look inside the sprite called “Editor”.
Then for each level, I transpose the corresponding entry from Levels into a list called “This_Level”.
So for example if you know your map dimensions (height and width), you can simply loop through the list and stamp/clone sprites to create the level. I have done this in a couple of my projects, but probably the one most similar to yours is on my test account..
Puzzle Labyrinth Remix (with Editor)
Look inside the sprite called “Editor”.
- seriouslyscratchy1
-
100+ posts
How to make a level editor for a game?
How do you do it? I am making something cool
- seriouslyscratchy1
-
100+ posts
How to make a level editor for a game?
I want something where you create a pattern and then…
you can generate it!!! and see your pen animation
you can generate it!!! and see your pen animation
- MooseKid101
-
33 posts
How to make a level editor for a game?
Don't blockspam or necropost, please.Random blocks
- ScratchUser1008666
-
3 posts
How to make a level editor for a game?
when green flag clicked
Last edited by ScratchUser1008666 (Oct. 6, 2020 20:14:59)
- seriouslyscratchy1
-
100+ posts
How to make a level editor for a game?
when green flag clicked
- seriouslyscratchy1
-
100+ posts
How to make a level editor for a game?
when green flag clicked
- Andoniman
-
21 posts
How to make a level editor for a game?
A level editor?? Ok. I'm also working in one, and it's simple. Imagine you have a block of 15 pixels, so:
- Discussion Forums
- » Help with Scripts
-
» How to make a level editor for a game?