Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Making a varible change a sprite on random choice
- theboii123213
-
Scratcher
2 posts
Making a varible change a sprite on random choice
I'm making a game based on the tv show ‘the chase ’ and I need the game to decide a top and lower offer but i have no idea what to use
- Spentine
-
Scratcher
1000+ posts
Making a varible change a sprite on random choice
Do you mean this?
if <(variable) = (1)> then… which can also be recreated like this?
switch costume to (insert costume 1 here v)
else
if <(variable) = (2)> then
switch costume to (insert costume 2 here v)
else
if <(variable) = (3)> then
switch costume to (insert costume 3 here v)
else
etc... :: grey
end
end
end
switch costume to (item (variable) of [costumes v])
- thenumberblocks2013
-
Scratcher
83 posts
Making a varible change a sprite on random choice
when green flag clicked
forever
while <touching color [#e006a9] ?>
set pen color to [#e006a9]
end
end
Last edited by thenumberblocks2013 (April 22, 2023 09:40:40)
- thenumberblocks2013
-
Scratcher
83 posts
Making a varible change a sprite on random choice
when green flag clicked
go to front
forever if <loud?>
set size to (100) %
end
with this
(numberblock (1) on (stage))
- thenumberblocks2013
-
Scratcher
83 posts
Making a varible change a sprite on random choice
(numberblock ((1) + ((2) + (3))) in (sprite2))
Last edited by thenumberblocks2013 (April 22, 2023 10:00:58)
- thenumberblocks2013
-
Scratcher
83 posts
Making a varible change a sprite on random choice
if ((☁ score) + (VAR)) then
clear
end
- thenumberblocks2013
-
Scratcher
83 posts
Making a varible change a sprite on random choice
define 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
forever if <is 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000>
broadcast [1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]
end
- Spentine
-
Scratcher
1000+ posts
Making a varible change a sprite on random choice
when green flag clicked
forever
while <touching color [#e006a9] ?>
set pen color to [#e006a9]
end
end
when green flag clicked
go to front
forever if <loud?>
set size to (100) %
end
with this(numberblock (1) on (stage))
(numberblock ((1) + ((2) + (3))) in (sprite2))
if ((☁ score) + (VAR)) then
clear
end
define 100000000000000000000
forever if <is 10000000>
broadcast [1000000000000000]
end
Please do not blockspam.
Last edited by Spentine (April 22, 2023 10:40:49)
- theboii123213
-
Scratcher
2 posts
Making a varible change a sprite on random choice
thanks that helped
- 09878901234321
-
Scratcher
500+ posts
Making a varible change a sprite on random choice

Sorry for big image
- Discussion Forums
- » Help with Scripts
-
» Making a varible change a sprite on random choice



