Discuss Scratch

Scratch739201
Scratcher
500+ posts

Does anyone have an idea how to make a level code in my Platform maker?

Does anyone have an idea how to make a level code in my Platform maker? Example: I can save my platform level and to get a code. If I load/open a code, the game will open my level.

My game: https://scratch.mit.edu/projects/103726745/
jokebookservice1
Scratcher
1000+ posts

Does anyone have an idea how to make a level code in my Platform maker?

If you are talking about where you have drawn a level, you could split the colours into sections seerated by 000, lik so:
_blaccode_000_redcode_000 etc.
Next, you could compress the motion of each colour by encoding the starting location (prepended with 9) and then the direction, like 1 for up, 2 for up and right, 3 for right etc. and then the ending the change in x and y with 400 added to them:

If I draw in black from x0 y0 to x0 y10 and then I jump to x20 y20 and draw to x30 y30 and then in red I go from x90 y90 to x80 to y80 then the level
code would go like so:

9 400 400 1 400 410 9 420 420 2 410 410 000 9 490 490 6 390 390 000
when you get rid of spaces
940040014004109420420241041000094904906390390000
and you could compress this
94 00 40 01 40 04 10 94 20 42 02 41 04 10 00 09 49 04 90 63 90 39 00 00
first record if there is an even or odd amount of numbers, in this case it is an even amount:
0 _____
next, assign 100 characters to each number
94 could become $
00 could become q
01 could become 0
so the beginning of it could become
$q0

That last bit is to make the code shorter.
Scratch739201
Scratcher
500+ posts

Does anyone have an idea how to make a level code in my Platform maker?

I don't understand could you remix the game for me? I can never do it myself. I think my code will be FAR too long.
jokebookservice1
Scratcher
1000+ posts

Does anyone have an idea how to make a level code in my Platform maker?

Sorry, I don't think I have time. But I will try my best to do it. But no promises.
Hexbugs03
Scratcher
1 post

Does anyone have an idea how to make a level code in my Platform maker?

Okay, so for some reason, the script I have is acting up, making the fourth and fifth levels of my game disappear. Can anyone help?https://scratch.mit.edu/projects/104481604/#player
jokebookservice1
Scratcher
1000+ posts

Does anyone have an idea how to make a level code in my Platform maker?

Hexbugs03 wrote:

Okay, so for some reason, the script I have is acting up, making the fourth and fifth levels of my game disappear. Can anyone help?https://scratch.mit.edu/projects/104481604/#player
Please start a new topic, and we'll all do our best to help

Last edited by jokebookservice1 (April 23, 2016 12:51:45)

SuperMarioHome
Scratcher
100+ posts

Does anyone have an idea how to make a level code in my Platform maker?

[removed]

Last edited by SuperMarioHome (Feb. 27, 2022 16:34:57)


About me:

SuperMarioHome | Boy, age 11 | m a r i o | ScratchDOS

—–

Useful links:

TOLORS | Suggestion Directory | Ocular
You have reached the demo version limit. Highlight this text and press (Ctrl+)Shift+Down to continue.

—–

@SuperMarioHome2

—–

Check out Project Forumoji!

—–



—–

ScratchDOS 4.0 in the works!

;

Powered by DjangoBB