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

#1 2008-09-28 12:29:10

deathbyblowfish
Scratcher
Registered: 2008-09-28
Posts: 1

Super speed help

I can't figure out how to make it so that if my character picks up a powerup, the  powerup gives the player super speed.Any help would be greatly appreciated.

Offline

 

#2 2008-09-28 12:46:55

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Super speed help

Firstly you should make a variable called "Player Speed"

Now I presume that you are using one of the following blocks to move your player around:

<move(  )steps>
<change x by( )>
<change y by( )>

Well inside those blocks, put the Player Speed variable inside, and set Player Speed to how many steps you want the character to move.

Then when a player goes over a power up, you increase or decrease the Player Speed.

So it should now look like this:

<move(<{ Player Speed }> steps>
<set{ Player Speed }to( 10 )

<forever>
<if><touching[ Power up ]
<change{ Player Speed }by( 5 )

Hope that makes sense


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#3 2008-09-28 17:08:44

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Super speed help

http://scratch.mit.edu/projects/bhz/277705

Does that work for you?

Offline

 

Board footer