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

#1 2011-08-23 21:21:23

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Oh no! Too many scripts!

I'm making this kind of soccer game, and I'm still somewhat new. So what I did here was I tried to make not a shootout or 2 on 2 game. I've just started and my number of scripts exceeds... I don't know how much. Don't worry this time. I'm going to upload this. Click on my name and click on "Unfinished Champions League project" Can you tell me how to reduce my number of scripts?

Offline

 

#2 2011-08-23 21:24:35

pokemongardevoir
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Oh no! Too many scripts!

Try and merge scripts. For example, turn this and this:

<when green flag clicked>
<switch to costume[


<when green flag clicked>
<forever>
<turn cw(  )degrees>

into this:

<when green flag clicked>
<switch to costume[
<forever>
<turn cw(  )degrees>

Also, to make things neater, right click and hit clean up.

Last edited by pokemongardevoir (2011-08-23 21:25:23)


http://i48.tinypic.com/n50dt.gifhttp://tiny.cc/oj6plwhttp://tiny.cc/creepforum
My website has been approved by the Scratch Team.  (^_^)

Offline

 

#3 2011-08-23 21:31:18

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: Oh no! Too many scripts!

pokemongardevoir wrote:

Try and merge scripts. For example, turn this and this:

<when green flag clicked>
<switch to costume[


<when green flag clicked>
<forever>
<turn cw(  )degrees>

into this:

<when green flag clicked>
<switch to costume[
<forever>
<turn cw(  )degrees>

Also, to make things neater, right click and hit clean up.

That's a good idea. Thanks. But I'm pretty sure that I will still end up with a lot of scripts.

Offline

 

#4 2011-08-23 21:44:48

pokemongardevoir
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Oh no! Too many scripts!

technomaniac wrote:

pokemongardevoir wrote:

Try and merge scripts. For example, turn this and this:

<when green flag clicked>
<switch to costume[


<when green flag clicked>
<forever>
<turn cw(  )degrees>

into this:

<when green flag clicked>
<switch to costume[
<forever>
<turn cw(  )degrees>

Also, to make things neater, right click and hit clean up.

That's a good idea. Thanks. But I'm pretty sure that I will still end up with a lot of scripts.

That's ok! Some o my projects have hundreds of scripts!


http://i48.tinypic.com/n50dt.gifhttp://tiny.cc/oj6plwhttp://tiny.cc/creepforum
My website has been approved by the Scratch Team.  (^_^)

Offline

 

#5 2011-08-23 22:02:07

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Oh no! Too many scripts!

What's wrong with too many scripts?  hmm


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#6 2011-08-23 22:50:06

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: Oh no! Too many scripts!

I will momentarilly delete the old version and make a new one. But I have a new question. I made it so that if one player touches the ball, the ball will go to a certain spot. But I made a x-position of - block. So after one player kicks the ball, it comes back to him. Second glitch - how do you make it so that instead of x-position of (one sprite), into any of several possible sprites. Go to my new thing and take a look at the Soccer Ball scripts, and help me fix the ball dilemma. Thank you. This is kind of complicated. Sorry. Simple words - How to make multiple sprites use the x-position of block one at a time, and how to fix the come-back-to-kicker dilemma. Thank you.

Offline

 

#7 2011-08-23 22:54:39

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Oh no! Too many scripts!

pokemongardevoir wrote:

technomaniac wrote:

pokemongardevoir wrote:

Try and merge scripts. For example, turn this and this:

<when green flag clicked>
<switch to costume[


<when green flag clicked>
<forever>
<turn cw(  )degrees>

into this:

<when green flag clicked>
<switch to costume[
<forever>
<turn cw(  )degrees>

Also, to make things neater, right click and hit clean up.

That's a good idea. Thanks. But I'm pretty sure that I will still end up with a lot of scripts.

That's ok! Some o my projects have hundreds of scripts!

On the first and some of the second page of my projects, nearly all those projects contains 100 or 100+ scripts  big_smile


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#8 2011-08-23 23:01:08

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: Oh no! Too many scripts!

technomaniac wrote:

I will momentarilly delete the old version and make a new one. But I have a new question. I made it so that if one player touches the ball, the ball will go to a certain spot. But I made a x-position of - block. So after one player kicks the ball, it comes back to him. Second glitch - how do you make it so that instead of x-position of (one sprite), into any of several possible sprites. Go to my new thing and take a look at the Soccer Ball scripts, and help me fix the ball dilemma. Thank you. This is kind of complicated. Sorry. Simple words - How to make multiple sprites use the x-position of block one at a time, and how to fix the come-back-to-kicker dilemma. Thank you.

I figured out the answer  to the script problem. But this is my new problem, so please post on this. Thanks!

Offline

 

#9 2011-08-24 14:55:58

ellscharstark
Scratcher
Registered: 2010-10-09
Posts: 100+

Re: Oh no! Too many scripts!

technomaniac wrote:

technomaniac wrote:

I will momentarilly delete the old version and make a new one. But I have a new question. I made it so that if one player touches the ball, the ball will go to a certain spot. But I made a x-position of - block. So after one player kicks the ball, it comes back to him. Second glitch - how do you make it so that instead of x-position of (one sprite), into any of several possible sprites. Go to my new thing and take a look at the Soccer Ball scripts, and help me fix the ball dilemma. Thank you. This is kind of complicated. Sorry. Simple words - How to make multiple sprites use the x-position of block one at a time, and how to fix the come-back-to-kicker dilemma. Thank you.

I figured out the answer  to the script problem. But this is my new problem, so please post on this. Thanks!

Sorry, but I don't really understand what you mean  sad .


From ellscharstark - I like boring signatures but I love colours!  smile   tongue   lol
P.S. I live in England!

Offline

 

Board footer