Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
- 30473
-
Scratcher
6 posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
Hi, I'm trying to make a maze game right now, and I have a sprite called ‘Solution’ and when you click it, it shows the pathway to the exit on level 1. And then when you reach level 2, when you click ‘Solution’ again, it will show the same pathway for Level 1.
https://imagizer.imageshack.com/v2/213x354q90/923/f4ENwK.png
So I'm wondering how can I make it so the top Code stops when it touches a specific Sprite, and only makes it so the bottom script can happen? Thank you for reading this.
https://imagizer.imageshack.com/v2/213x354q90/923/f4ENwK.png
So I'm wondering how can I make it so the top Code stops when it touches a specific Sprite, and only makes it so the bottom script can happen? Thank you for reading this.
- SansStudios
-
Scratcher
1000+ posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
If you have a level variable for your levels…
when this sprite clicked // top script
if <(level) = [1]> then
... // your original code here
end
when this sprite clicked // bottom script
if <(level) = [2]> then
... // original code here
end
- 30473
-
Scratcher
6 posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
If you have a level variable for your levels…when this sprite clicked // top script
if <(level) = [1]> then
... // your original code here
end
when this sprite clicked // bottom script
if <(level) = [2]> then
... // original code here
end
how do i make the maze sprites broadcast the levels?
- 30473
-
Scratcher
6 posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
um would you mind looking at my whole game? this is literally the second proper game i have made on scratch and i need help with it. I'm planning to work on it tomorrow, but thanks.
- dudemanwest
-
Scratcher
100+ posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
um would you mind looking at my whole game? this is literally the second proper game i have made on scratch and i need help with it. I'm planning to work on it tomorrow, but thanks.i dont think u can advertise on this forum
- Paddle2See
-
Scratch Team
1000+ posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
I'm not sure this is strictly advertising, as they say that they need help with it.um would you mind looking at my whole game? this is literally the second proper game i have made on scratch and i need help with it. I'm planning to work on it tomorrow, but thanks.i dont think u can advertise on this forum
It would be better if it was specified what kind of help they are looking for.
- souleymane2
-
Scratcher
100+ posts
How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?
Solution script
when green flag clicked
forever
if <<mouse down?> and <touching [mouse-pointer v] ?>> then
if <(level) = [1]> then
Solution for level one script
else
if <(level) = [2]> then
Soltuion for level 2
else
Keep on going for every level you get so for level 3, level 4, level 5 etc.
end
end
end
end
- Discussion Forums
- » Help with Scripts
-
» How to make the same Sprite have two different effects after they have been clicked, but make one disabled after touching a specific sprite?