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

#1 2012-06-25 22:48:05

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Can someone check this out?

Can someone download this project and possibly tell me if there is an easier way to script it? What it does is separate the digits in a number and show them on separate sprites. I'm gonna use it for a calculator I'm making and the less scripts the better. Thanks  smile

Offline

 

#2 2012-06-25 22:51:44

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Can someone check this out?

http://scratch.mit.edu/projects/dankill51/2635430 here's the link

Offline

 

#3 2012-06-25 22:55:36

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Re: Can someone check this out?

I will take a look at this after school and get back to you  smile  I will attempt to fix up your scripts, and hopefully make them smaller!
Dan Jones


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#4 2012-06-25 23:27:03

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Can someone check this out?

Thanks  smile  I originally had a really really long script and although this one is long too my other one was at least 30 times longer.

Offline

 

#5 2012-06-25 23:29:38

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Re: Can someone check this out?

haha, yeah scripts can become unorganised. have you tried cleaning up your scripts? Iti s always better when your scripts are short, but good.
Check out the huge script for the game in my sig... very long xD


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#6 2012-06-25 23:38:00

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Can someone check this out?

Yeah I've tried cleaning them up. Doesn't really help me much but it looks better and more organized. And wow that's really long

Offline

 

#7 2012-06-25 23:43:56

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Can someone check this out?

I just did the math and my other script was 1478.2 times longer O.O

Offline

 

#8 2012-06-26 03:15:59

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Re: Can someone check this out?

really?? that is massive LOL I am checking it out now for you  smile


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#9 2012-06-26 04:12:49

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Re: Can someone check this out?

dankill51, I have checked out your script, I personally could not manage to simplify it, you have done it quite nicely! sorry I could not have been any help..
Thanks
Dan Jones


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#10 2012-06-26 04:50:33

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Can someone check this out?

Don't be afraid to have tons of scripts, some of the best games have over 100. Its good to be efficient, but not too efficient.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#11 2012-06-26 07:37:40

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Can someone check this out?

Thanks for trying  smile  I wasn't sure if it could have gotten smaller or not. I was just wondering. And thanks Wes64. I was expecting the calculator I'm going to make to have a lot of scripts and I didn't want it to be too slow.

Offline

 

#12 2012-06-26 07:47:35

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Can someone check this out?

dankill51 wrote:

Thanks for trying  smile  I wasn't sure if it could have gotten smaller or not. I was just wondering. And thanks Wes64. I was expecting the calculator I'm going to make to have a lot of scripts and I didn't want it to be too slow.

Lots of scripts won't make your project slow.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#13 2012-06-26 08:01:30

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Can someone check this out?


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#14 2012-06-26 16:03:49

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Can someone check this out?

SciTecCf wrote:

Simplified version.

I've made yours even shorter/more simplified.  tongue

http://scratch.mit.edu/projects/fg123_tests/2637586


Hai.

Offline

 

#15 2012-07-07 14:37:01

sonicgames20
Scratcher
Registered: 2012-06-13
Posts: 100+

Re: Can someone check this out?

Use variables.


if there is no I in TEAM and there  is no U in TEAM then who's on the team?
I am-http://blocks.scratchr.org/API.php?user=sonicgames20&action=onlineStatus&type=square-green=online grey=offline

Offline

 

Board footer