salve!
I have been working on making a zelda-style 2d rpg, but in my large number of variables and broadcasts, have found some that I want to remove to save memory. easy enough with the variables, but I can't figure out if there is a way to remove unused broadcasts. I know it won't save that much memory, but it'll make it a lot easier for me to find the one i need.
also, I've been hearing about a trick where you use a multi-digit variable to stand in for a bunch of one digit ones. can anyone tell me how to do that, and if it works to replace other variables with more than one digit?
Offline
To replace broadcasts, delete it? That what your asking? And I guess you could try finding each number according to place value in the variable (like switch to costume variable divided by 10).

Offline
ellimistd wrote:
also, I've been hearing about a trick where you use a multi-digit variable to stand in for a bunch of one digit ones. can anyone tell me how to do that, and if it works to replace other variables with more than one digit?
This is kinda a way to create a simple list. Fortunately, the newest version of scratch has lists built in. If you have many similar variables using lists would be a good option.
Offline
ellimistd wrote:
Thanks, but wait, can I transfer a project to the new scratch from the old one?
I did that all the time when I downloaded a project but was working on another (when I had the beta)

Offline
thanks guys! this has really helped me! but I still have one more question: with the new lists, how would i program in save codes? ie. it takes all the player's stats, and shows them to him in a coded format so that next time he plays he doesn't have to start from the beginning?
Offline
ellimistd wrote:
thanks guys! this has really helped me! but I still have one more question: with the new lists, how would i program in save codes? ie. it takes all the player's stats, and shows them to him in a coded format so that next time he plays he doesn't have to start from the beginning?
Impossible. That would require saving via cookies (just as an example) which Scratch doesn't allow

Offline
I dunno, you could probably make a code generator. Make X and Y go through some formula To convert them into a number/letter code that you could copy onto paper, then do the same with all the stats. It would take a while to figure it all out but it would be very flexible.
Offline
ellimistd wrote:
thanks guys! this has really helped me! but I still have one more question: with the new lists, how would i program in save codes? ie. it takes all the player's stats, and shows them to him in a coded format so that next time he plays he doesn't have to start from the beginning?
You could store all the information in a List, then use the List Export/Import functions to save and restore the information. I don't think it would work online though.
Offline