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

#1 2012-06-30 14:22:05

Frankie101
New Scratcher
Registered: 2012-06-28
Posts: 28

Speeding Up - HELP NEEDED URGENTLY!!!!!!!

My sprite starts at moving to ... for 1.5 seconds. On level 2, I want it to speed up to doing it in 1 second, and so on...Please help!!!!

Offline

 

#2 2012-06-30 15:12:15

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

Re: Speeding Up - HELP NEEDED URGENTLY!!!!!!!

Do you have a variable to point out which level it is?


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

Offline

 

#3 2012-06-30 15:13:19

Frankie101
New Scratcher
Registered: 2012-06-28
Posts: 28

Re: Speeding Up - HELP NEEDED URGENTLY!!!!!!!

I'm not sure how to use variables  hmm

Offline

 

#4 2012-06-30 15:24:35

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

Re: Speeding Up - HELP NEEDED URGENTLY!!!!!!!

Frankie101 wrote:

I'm not sure how to use variables  hmm

Umm, OK. Lemme give ya a tutorial.

Variables are basically like a piece of paper. You can write something down, and access it whenever you like. With Variables, you can also replace what you've written using the

set [whatever v] to [whatever]
block. Variables, when created, are blank.

If your variable is a number, you can also use the

change [whatever v] by (1)
block. The contents of your variable can be accessed at any time using the reporter block with the variable's name on it:

(whatever)
and can be used in any text/number input.

When creating a variable, click on "Make a variable" and type in a name in the box that pops up. Under that, there are 2 bullet selections: For all sprites, and For this sprite only. In this case, you should select "For all sprites". In another case, like making a velocity sprite that uses variables that you want to duplicate, the other is required.

I hope this helped!  big_smile

Once you have a variable, you can do this:

if <(level) = [1]>
 glide (1.5) secs to x: (0) y: (0)
end
if <(level) = [2]>
 glide (1) secs to x: (0) y: (0)
end
and so on.


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

Offline

 

#5 2012-06-30 15:36:40

Frankie101
New Scratcher
Registered: 2012-06-28
Posts: 28

Re: Speeding Up - HELP NEEDED URGENTLY!!!!!!!

Ok thanks, I get how variables work...  big_smile  But...Now nothing is moving!! Lol!

Offline

 

#6 2012-07-01 15:15:29

Frankie101
New Scratcher
Registered: 2012-06-28
Posts: 28

Re: Speeding Up - HELP NEEDED URGENTLY!!!!!!!

I've fixed it now!! Thanks!!  big_smile

Offline

 

Board footer