Discuss Scratch

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

end[/small][/big]
:cool::rolleyes:
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
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

do_you_like_tacos wrote:

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
sorry cant help there…
meow3092
Scratcher
22 posts

List of Helpful Topics for Scripting

cool thank you!
:D
W10Y
Scratcher
5 posts

List of Helpful Topics for Scripting

poppysalmon
Scratcher
18 posts

List of Helpful Topics for Scripting

do_you_like_tacos wrote:

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
poppysalmon wrote:

If needed to do that…

Slider's Body

when green flag clicked
switch costume to [Number that you want the slider to have v]
Dot (Sliding Part)

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

postagebox wrote:

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
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 costume
repeat (5)
change y by (1)
stamp
end
But 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:
go to x: (0) y: (0)
clear
switch costume to [ Costume 1]
The end is:
turn ccw (1) degrees
meow3092
Scratcher
22 posts

List of Helpful Topics for Scripting

Riptide901 wrote:

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 costume
repeat (5)
change y by (1)
stamp
end
But 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:
go to x: (0) y: (0)
clear
switch costume to [ Costume 1]
The end is:
turn ccw (1) degrees
at least the hippo is working
meow3092
Scratcher
22 posts

List of Helpful Topics for Scripting

ColdCoffee_0473 wrote:

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
A cold cup of coffe

Last edited by meow3092 (Dec. 28, 2018 17:40:59)

meow3092
Scratcher
22 posts

List of Helpful Topics for Scripting

meow3092 wrote:

ColdCoffee_0473 wrote:

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
A cold cup of coffe
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

CrazyScratchGirl12 wrote:

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

Powered by DjangoBB