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

#1 2010-05-28 13:45:51

kaydot
Scratcher
Registered: 2010-05-28
Posts: 1

help?!

im making a game and the tortoise (sprite) has to collect all the fruit.  big_smile
ive made it so, when the tortoise touches the fruit, the fruit is set to ghost effect at 100.
i want to make it so when the tortoise has collected/touched all the fruit, it will go to the next level.
how do i do it? :-)

Offline

 

#2 2010-05-28 15:01:23

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: help?!

Just use this:

[blocks]<clear graphic effects>[/blocks]

EDIT:

What you do is for each fruit collected, you have this script:
http://i50.tinypic.com/2hg7mzd.gif

Make it repeat as many times as there are levels.

The orange blocks come from "variables". You can make a variable by pressing "new variable".

Last edited by Greatdane (2010-05-28 15:04:37)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#3 2010-05-29 01:07:20

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: help?!

Will the next level be harder? In that case it would make sense to create a variable called "level" and make it change by 1 each time the fruit is cleared - just add "[change (level) by (1)]" at the end of Greatdane's script. ^^

To make each level harder somehow, you have to connect something to the number of the level. For example, if you want the tortoise to run faster with each level, you can create something like this for the movement scripts:

[blocks]<when[ up ]key pressed>
<move( <{ level  }> )steps>[/blocks]


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

Board footer