Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » List of Helpful Topics for Scripting
- tris304
-
Scratcher
6 posts
List of Helpful Topics for Scripting
My browser / operating system: Windows NT 10.0, Chrome 71.0.3578.98, No Flash version detected
if <> then:cool::rolleyes:
end[/small][/big]
- Friendplayer910
-
Scratcher
37 posts
List of Helpful Topics for Scripting
I noticed that scripts can listen for alpha-numeric, arrow keys and space with the
<key [key v] pressed?>block. Is there any way to
<key [backspace v] pressed?>?
- MagnusXLY
-
Scratcher
29 posts
List of Helpful Topics for Scripting
Hey,
I was wondering how to make a script like this - If I have two apples I can make a 1 pie if I have five strawberries I can make a smoothie.
Tell me if you don't understand!
Thanks
Euan
I was wondering how to make a script like this - If I have two apples I can make a 1 pie if I have five strawberries I can make a smoothie.
Tell me if you don't understand!
Thanks
Euan
- poppysalmon
-
Scratcher
18 posts
List of Helpful Topics for Scripting
to do that…
when green flag clicked
set [Apples v] to [0]
forever
if <(Apples) = [5]> then
if <key [T v] pressed?> then
set [Apples v] to ((Apples) - (5))
end
end
end
- do_you_like_tacos
-
Scratcher
1 post
List of Helpful Topics for Scripting
I want to make a slider variable, but i dont want it to look like scratch's variable slider. i want it to look unique, and nice
- MagnusXLY
-
Scratcher
29 posts
List of Helpful Topics for Scripting
I want to make a slider variable, but i dont want it to look like scratch's variable slider. i want it to look unique, and nicesorry cant help there…
- poppysalmon
-
Scratcher
18 posts
List of Helpful Topics for Scripting
I want to make a slider variable, but i dont want it to look like scratch's variable slider. i want it to look unique, and nicepoppysalmon wrote:
If needed to do that…
Slider's Body
when green flag clickedDot (Sliding Part)
switch costume to [Number that you want the slider to have v]
when green flag clicked
forever
if <<touching [Mouse-Pointer v] ?> and <mouse down?>> then
set x to (mouse x)
if <(x position) = [End of your slider]> then
set x to (Beginning of the slider)
end
end
end
Make you're slider ANY color/colour you want.
set [color v] effect to (Dot X)is a good way to make your body change color/colour. Make the body change the number by putting a variable on it.
Last edited by poppysalmon (Dec. 21, 2018 17:54:15)
- postagebox
-
New Scratcher
1 post
List of Helpful Topics for Scripting
is there a way a can delete a certain number from a list?
- Friendplayer910
-
Scratcher
37 posts
List of Helpful Topics for Scripting
is there a way a can delete a certain number from a list?If you know what that item is, you can just
delete (item) of [list v]If you don't, you can do
repeat until <(item (i) of [list v] :: list) = [item-content]>
change [i v] by (1)
end
delete (i) of [list v]
Last edited by Friendplayer910 (Dec. 22, 2018 17:47:14)
- ColdCoffee_0473
-
Scratcher
14 posts
List of Helpful Topics for Scripting
Hello,i'm a cup of coffee
I worked hard on my games,can you check them now
Plz:O
(I'm not only for likes and favorites,plz tell me the glitches about my games

I worked hard on my games,can you check them now

Plz:O
(I'm not only for likes and favorites,plz tell me the glitches about my games

- Riptide901
-
Scratcher
24 posts
List of Helpful Topics for Scripting
So I'm trying to make one of those 3D sprites (y'know with the multiple layers and stuff like that?). I made 2 of them, a hippo and an elephant. The hippo worked out fine and came out the way I wanted, but the elephant won't work correctly. I'm using the stamp block in a script that goes something like:
next costumeBut it only shows the last layer in its final position. I think it might be because the stamp block isn't working correctly or it might be some other part of the script. The beginning is:
repeat (5)
change y by (1)
stamp
end
go to x: (0) y: (0)The end is:
clear
switch costume to [ Costume 1]
turn ccw (1) degrees
- meow3092
-
Scratcher
22 posts
List of Helpful Topics for Scripting
So I'm trying to make one of those 3D sprites (y'know with the multiple layers and stuff like that?). I made 2 of them, a hippo and an elephant. The hippo worked out fine and came out the way I wanted, but the elephant won't work correctly. I'm using the stamp block in a script that goes something like:at least the hippo is workingnext costumeBut it only shows the last layer in its final position. I think it might be because the stamp block isn't working correctly or it might be some other part of the script. The beginning is:
repeat (5)
change y by (1)
stamp
endgo to x: (0) y: (0)The end is:
clear
switch costume to [ Costume 1]turn ccw (1) degrees

- pobloecat
-
Scratcher
4 posts
List of Helpful Topics for Scripting
ive had problem with scratch 3.0 where it will not show the scripts from my 2.0 games. can anyone help?

- CrazyScratchGirl12
-
Scratcher
5 posts
List of Helpful Topics for Scripting
3.0 really is not my style! I love how everything looks cleaner but the scripting and the drawings/vector is just so much more complicated and I prefer 2.0? I dont know, I just found it easier. I still dont know how to shrink or grow something! I definitely need extra help with coding. I haven't been on this account for ages! Mainly on @TasminAbbott_ and I want to make a come back but these scripts ):
- Friendplayer910
-
Scratcher
37 posts
List of Helpful Topics for Scripting
3.0 really is not my style! I love how everything looks cleaner but the scripting and the drawings/vector is just so much more complicated and I prefer 2.0? I dont know, I just found it easier. I still dont know how to shrink or grow something! I definitely need extra help with coding. I haven't been on this account for ages! Mainly on @TasminAbbott_ and I want to make a come back but these scripts ):To change the size of a sprite, click on the sprite and set the size number to the percentage you want the sprite to be.
- Andy8800
-
Scratcher
69 posts
List of Helpful Topics for Scripting
Sooooo one of my projects is weird. I have this variable for a save code. But it bugs out. Whenever you press save, the variable just turns blank. I checked and this has nothing to do with coding errors. If anyone knows why this happened please tell me
- Discussion Forums
- » Help with Scripts
-
» List of Helpful Topics for Scripting

