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
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)
Offline
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
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!
Offline
What's wrong with too many scripts?
Offline
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
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
Offline
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
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 .
Offline