Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to add levels to my top-down game?
- vinelard
-
New Scratcher
12 posts
How to add levels to my top-down game?
Hello everyone! I am new to coding and I would like to ask how to add levels to my top-down game. I have some cleaning up to do and minor changes but I feel ready to move to the next big step which is levels for me. I am scared of breaking my code and this is a big task for me so help is much apriciated. I have made back ups for the file but still, I don't want anything to go wrong. This is my first ever big project.
Here is a link to the game in question: https://scratch.mit.edu/projects/1314681536
Here is a link to the game in question: https://scratch.mit.edu/projects/1314681536
- dem_bot
-
Scratcher
1000+ posts
How to add levels to my top-down game?
I think its as simple as just moving the player to the start and having the obstacles and stuff be set to the current level costume. The collectables should probably have a list to read their positions from.
- vinelard
-
New Scratcher
12 posts
How to add levels to my top-down game?
I think its as simple as just moving the player to the start and having the obstacles and stuff be set to the current level costume. The collectables should probably have a list to read their positions from.
Should the obstacles and enemies have a list system for location too?
- wisco11
-
Scratcher
100+ posts
How to add levels to my top-down game?
I would use hard set positions for each item in each level, either in a list or in actual <sb> go to (x) (y) </sb> blocks. then, store what level it is in a variable, <sb> (level) </sb> and have each sprite go to the right place each level.
- Discussion Forums
- » Help with Scripts
-
» How to add levels to my top-down game?