Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
- scratchgaming2222
- Scratcher
500+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
- Alphysse
- Scratcher
1000+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
Try something like this:
forever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
... :: grey
end
end
end
- scratchgaming2222
- Scratcher
500+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides Try something like this:goodforever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
... :: grey
end
end
end
- scratchgaming2222
- Scratcher
500+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides Try something like this:goodforever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
... :: grey
end
end
end
In a project where basketball is the background and neigh pony is the character with the scriptplz —->
- scratchgaming2222
- Scratcher
500+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
Maybe not fixed fixedforever
if <<mouse down?>> and <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>>> then
... :: grey
end
End
Last edited by scratchgaming2222 (Oct. 4, 2021 00:44:57)
- Alphysse
- Scratcher
1000+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
Ah, here's some code that'll work for that:This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides Try something like this:goodforever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
... :: grey
end
end
end
show
forever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
broadcast [win v]
end
end
end
when I receive [win v]
say [You win! Goodbye!] for (2) secs
hide
- scratchgaming2222
- Scratcher
500+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
ThanksAh, here's some code that'll work for that:This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides Try something like this:goodforever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
... :: grey
end
end
endshow
forever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
broadcast [win v]
end
end
end
when I receive [win v]
say [You win! Goodbye!] for (2) secs
hide
- scratchgaming2222
- Scratcher
500+ posts
make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)
Now make it into a project plzThanksAh, here's some code that'll work for that:This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides Try something like this:goodforever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
... :: grey
end
end
endshow
forever
if <mouse down?> then
if <<key [e v] pressed?> and <<key [r v] pressed?> and <<key [w v] pressed?> and <key [i v] pressed?>>>> then
broadcast [win v]
end
end
end
when I receive [win v]
say [You win! Goodbye!] for (2) secs
hide
- Discussion Forums
- » Help with Scripts
- » make something where mouse click instantly wins a game after pressing a 4 key combinaton. (e and r and w and i keys together)