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

#1 2012-07-23 17:22:20

maayax
New Scratcher
Registered: 2012-06-04
Posts: 6

Script Help - Powerups and other

http://scratch.mit.edu/projects/maayax/2692420

Please help. I have a few questions:
- How do I make the speed of the asteroid and the chain chomp gradually faster? (I have two different scripts for them because I do not know which one is better)

- How do I add powerups? - With the star, I want to make it so when the cat touches it, it is like invincible for a 5 seconds or so ffrom the chain chomp and asteroid. With the toad/mushroom, I want to make it so that the movement of the mouse and speed of the cat moves faster.

- I want to initially make the movement of the mouse/cat slower. Thanks  smile

Offline

 

#2 2012-07-23 19:13:10

cau2134
Scratcher
Registered: 2011-10-22
Posts: 29

Re: Script Help - Powerups and other

you just have a variable called star and set like this

when gf clicked
forever
 if <touching [star]>
   set [star] to (1)
 end
end

Last edited by cau2134 (2012-07-23 19:13:45)


http://mag.racked.eu/cimage/i9002/Achievement+get%21/I.39.m+watching+you%21/mca.png

Offline

 

#3 2012-07-25 02:37:12

XXtitaniumfangXX
New Scratcher
Registered: 2012-07-12
Posts: 57

Re: Script Help - Powerups and other

for the gradually speeding sprites go here

http://wiki.scratch.mit.edu/wiki/Velocity

for the power ups maybe you could make

when sprite1 clicked
broadcast [powerup]
hide
wait [20] secs
show

Offline

 

#4 2012-07-25 02:43:33

XXtitaniumfangXX
New Scratcher
Registered: 2012-07-12
Posts: 57

Re: Script Help - Powerups and other

just add a forever if and when touching cat

Offline

 

#5 2012-07-25 13:15:25

XXtitaniumfangXX
New Scratcher
Registered: 2012-07-12
Posts: 57

Re: Script Help - Powerups and other

XXtitaniumfangXX wrote:

for the gradually speeding sprites go here

http://wiki.scratch.mit.edu/wiki/Velocity

for the power ups maybe you could make

when sprite1 clicked
broadcast [powerup]
hide
wait [20] secs
show

http://wiki.scratch.mit.edu/wiki/Velocity

Offline

 

Board footer