Discuss Scratch

jamiewinter
Scratcher
100+ posts

Save point help!

I need help with making save points and im almost at the stage where i just wait for cloud lists to come but ive got a problem: When i click the ingame save, it saves all my variables but lvl, if you can check out my project save point test and try to help, it would be appreciated. Thank you!
andre_rifaut
Scratcher
100+ posts

Save point help!

Cloud vars allow ony digits, no space is allowed.
When you save numbers to a cloud var, you can “pack them” in a big number.
The problem is to read them back easily.

One easy solution is to make each number havin a fixed size.
For instance age of people could go from 0 to 99 years.
Levels can go from 0 to 999.

So, it is more easy to:
store 100 + age because this will always take 3 digits (100 to 199)
store 1000 level because this will always take 4 digits (1000 to 1999)

When you glue both numbers, for instance 1231876, this means that:
the letters 2 and 3 is the age and
the letters 5,6 and 7 is the level.

That's it.
jamiewinter
Scratcher
100+ posts

Save point help!

The code isn't cloud though, so that's why spaces DO work but the lvl one is broken
dracae
Scratcher
1000+ posts

Save point help!

Well, from what I see, you're checking if 10 = 0?
jamiewinter
Scratcher
100+ posts

Save point help!

Bump
jamiewinter
Scratcher
100+ posts

Save point help!

Bump, any help?

Powered by DjangoBB