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

#226 2012-12-08 12:43:08

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

I'd like to join if you have room!  smile


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#227 2012-12-08 12:46:51

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

technoboy10 wrote:

I'd like to join if you have room!  smile

We're always on the lookout for new members!

fetchydog567 wrote:

Still more space? I would join.

I wasn't expecting a rival to join but why not?

Last edited by JH1010 (2012-12-08 12:47:44)

Offline

 

#228 2012-12-08 18:09:55

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Scripts Workshop: Give and get help with scripts

JH1010 wrote:

technoboy10 wrote:

I'd like to join if you have room!  smile

We're always on the lookout for new members!

fetchydog567 wrote:

Still more space? I would join.

I wasn't expecting a rival to join but why not?

I quit my shop!  hmm  :\


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#229 2012-12-09 07:43:49

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

I quit my shop!  hmm  :\

I noticed just now.

Offline

 

#230 2012-12-10 14:32:28

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

bump

Offline

 

#231 2012-12-11 14:15:50

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Random fact: The next person to view this thread will be the 6666th viewer!

(Yes, this is just a bump in disguise.)

Offline

 

#232 2012-12-13 00:16:53

Ideas
Scratcher
Registered: 2012-10-07
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Bump


http://img685.imageshack.us/img685/2010/screenshot20121110at132.pngI think that you must CLICK above

Offline

 

#233 2012-12-14 13:25:32

whoopdotyop
New Scratcher
Registered: 2012-12-12
Posts: 2

Re: Scripts Workshop: Give and get help with scripts

How do you make the enemy turn,shoot,turn,shoot...............................

Offline

 

#234 2012-12-14 16:20:15

Cookman
Scratcher
Registered: 2012-11-24
Posts: 3

Re: Scripts Workshop: Give and get help with scripts

How do I get my sprite to lose HP when he touches a certain color?

Offline

 

#235 2012-12-14 16:58:07

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Cookman wrote:

How do I get my sprite to lose HP when he touches a certain color?

If you have a variable recording a sprite's HP, then you can use this:

when gf clicked
forever
 if (touching color [color]?)
  change [hp v] by (-1)//Or what you want.
  wait until <not (touching color [color]?)>
 end
I hope that this helps!


http://i46.tinypic.com/35ismmc.png

Offline

 

#236 2012-12-17 15:21:27

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

whoopdotyop wrote:

How do you make the enemy turn,shoot,turn,shoot...............................

Enemy:

when gf clicked
go to x:(0)y:(0)
forever
set [a v] to (0)
turn clockwise (15) degrees
set [a v] to (1)
wait (1) secs
end
Bullet:
when gf clicked
forever
if <(a)=(1)>
show
else
go to x:(0)y:(0)
hide
end
end
when gf clicked
forever
if <(a)=(1)>
glide (1) secs to x:(100)y:(100)
go to x:(0)y:(0)
end

Last edited by JH1010 (2012-12-17 15:22:18)

Offline

 

#237 2012-12-19 02:29:25

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

bump

Offline

 

#238 2012-12-19 20:32:30

jlc6687
New Scratcher
Registered: 2012-12-19
Posts: 4

Re: Scripts Workshop: Give and get help with scripts

Hi I'm a total beginner at Scratch programming and I need some help  smile
I'm working on a project where you can change the soundtrack in the background but when I click on the second song the first is still playing. How can I make the first song stop while the second one plays?     Thankyou!

Offline

 

#239 2012-12-20 02:20:36

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

jlc6687 wrote:

Hi I'm a total beginner at Scratch programming and I need some help  smile
I'm working on a project where you can change the soundtrack in the background but when I click on the second song the first is still playing. How can I make the first song stop while the second one plays?     Thankyou!

stop all sounds
play sound [next sound v]

Offline

 

#240 2012-12-20 11:34:20

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

bump

Offline

 

#241 2012-12-20 13:43:14

whoopdotyop
New Scratcher
Registered: 2012-12-12
Posts: 2

Re: Scripts Workshop: Give and get help with scripts

How do you make it so that nothing can pass through the walls?

Offline

 

#242 2012-12-20 21:10:05

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Scripts Workshop: Give and get help with scripts

whoopdotyop wrote:

How do you make it so that nothing can pass through the walls?

Good answer!
If you want it to  off the walls you could do this simple script:


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#243 2012-12-20 22:23:26

Jakevan
New Scratcher
Registered: 2012-12-12
Posts: 1

Re: Scripts Workshop: Give and get help with scripts

How do you make it to where when a sprite is clicked, the background is immediatly changed and the said sprite disappears?

Offline

 

#244 2012-12-21 01:17:43

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Jakevan wrote:

How do you make it to where when a sprite is clicked, the background is immediatly changed and the said sprite disappears?

Sprite:

when I receive [change v]
hide
Stage
when I receive [change v]
switch to background [background 1 v]

Last edited by JH1010 (2012-12-21 01:18:50)

Offline

 

#245 2012-12-22 02:20:28

Ideas
Scratcher
Registered: 2012-10-07
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Jodymoses wrote:

My easiest solution is
to make a
slingshot sprite
small dot sprite
projectile sprite

...let the slingshot x and y pos. be in the bottom left corner but not touching the edge...

For the dot add the following script

when gf clicked
clear
pen down
forever
if <<mouse down?> and <(([x position v] of [slingshot v])) - (mouse x) < [15]>
set [speed v] to ((distance to [slingshot v])*[3])
set x to (mouse x)
set y to (mouse y)
end
clear
if <<mouse down?>and<(([x position v] of [slingshot v]) - (mouse x)) < [15]>>
set [speed v] to ((distance to[slingshot v])*[3])
set x to (mouse x)
set y to (mouse y)
end
now for the projectile
when gf clicked
forever
set x to ([x position v] of [dot v])
set y to ([y position v] of [dot v])  
if <mouse down?>
set x to ([x position v] of [dot v])
set y to ([y position v] of [dot v])
point towards [mouse pointer v]
end
set [x v] to ((speed) * ([sin v] of (direction)))
set [y v] to ((speed) * ([cos v] of (direction)))
broadcast [shoot v] and wait
when i receive [shoot v]
repeat until <<(touching [edge v]?)>or<(y position) < [-179]>>
change x by (x)
change y by (y)
change [y v] by (-0.2)
set [turn v] to ([atan v] of ((x) / (y)))
if < (turn) > (0) >
point in direction (turn)
else
point in direction ((turn)+[180])
end
end

Fixed.


http://img685.imageshack.us/img685/2010/screenshot20121110at132.pngI think that you must CLICK above

Offline

 

#246 2012-12-22 02:25:14

Ideas
Scratcher
Registered: 2012-10-07
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Jodymoses wrote:

My easiest solution is
to make a
slingshot sprite
small dot sprite
projectile sprite

...let the slingshot x and y pos. be in the bottom left corner but not touching the edge...

For the dot add the following script

when gf clicked
clear
pen down
forever
if <<mouse down?>and<(([x position v] of [slingshot v]) - (mouse x)) < [15]>>
set [speed v] to ((distance to [slingshot v])*[3])
set x to (mouse x)
set y to (mouse y)
end
clear
if <<mouse down?>and<(([x position v] of [slingshot v]) - (mouse x)) < [15]>>
set [speed v] to ((distance to[slingshot v])*[3])
set x to (mouse x)
set y to (mouse y)
end
now for the projectile
when gf clicked
forever
set x to ([x position v] of [dot v])
set y to ([y position v] of [dot v])  
if <mouse down?>
set x to ([x position v] of [dot v])
set y to ([y position v] of [dot v])
point towards [mouse pointer v]
end
set [x v] to ((speed) * ([sin v] of (direction)))
set [y v] to ((speed) * ([cos v] of (direction)))
broadcast [shoot v] and wait
when i receive [shoot v]
repeat until <<(touching [edge v]?)>or<(y position) < [-179]>>
change x by (x)
change y by (y)
change [y v] by (-0.2)
set [turn v] to ([atan v] of ((x) / (y)))
if < (turn) > (0) >
point in direction (turn)
else
point in direction ((turn)+[180])
end
end

Fixed, that took a while


http://img685.imageshack.us/img685/2010/screenshot20121110at132.pngI think that you must CLICK above

Offline

 

#247 2012-12-22 11:10:07

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Scripts Workshop: Give and get help with scripts

fetchydog567 wrote:

whoopdotyop wrote:

How do you make it so that nothing can pass through the walls?

Good answer!
If you want it to  off the walls you could do this simple script:

\
Uh..


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#248 2012-12-23 00:38:47

lovekid2002
New Scratcher
Registered: 2012-12-21
Posts: 1

Re: Scripts Workshop: Give and get help with scripts

Can i join this is my first year but i need more building ideas i have a good imangen nation

Offline

 

#249 2012-12-23 02:17:12

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

lovekid2002 wrote:

Can i join this is my first year but i need more building ideas i have a good imangen nation

Yes, you can join.

Offline

 

#250 2012-12-24 02:30:44

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

bump

Offline

 

Board footer