This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-09-02 19:33:31

ellimistd
Scratcher
Registered: 2008-08-30
Posts: 3

deleting broadcasts

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

 

#2 2008-09-02 21:40:32

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: deleting broadcasts

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).


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-09-02 22:26:13

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: deleting broadcasts

To delete broadcasts, remove all the scripts that use them. It's a pain, but also the only way.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#4 2008-09-02 22:29:20

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: deleting broadcasts

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.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2008-09-03 17:00:36

ellimistd
Scratcher
Registered: 2008-08-30
Posts: 3

Re: deleting broadcasts

Thanks, but wait, can I transfer a project to the new scratch from the old one?

Offline

 

#6 2008-09-03 17:16:03

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: deleting broadcasts

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)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#7 2008-09-03 21:00:36

ellimistd
Scratcher
Registered: 2008-08-30
Posts: 3

Re: deleting broadcasts

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

 

#8 2008-09-03 21:03:17

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: deleting broadcasts

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


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#9 2008-09-04 13:09:03

SeanCanoodle
Scratcher
Registered: 2008-06-20
Posts: 100+

Re: deleting broadcasts

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

 

#10 2008-09-04 14:21:44

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: deleting broadcasts

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.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer