Discuss Scratch

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)

plz


thanks cannedkoolaid for the banner!
highlight then ctrl shift down to see the rest of my siggy
scratchgaming2222

i wrote:

Hi! This sight is really a mess.


if you see this make a New topic called plup on show and tell
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)

Alphysse helped but kinda wrote:

Try something like this:
good
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
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides


thanks cannedkoolaid for the banner!
highlight then ctrl shift down to see the rest of my siggy
scratchgaming2222

i wrote:

Hi! This sight is really a mess.


if you see this make a New topic called plup on show and tell
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)

scratchgaming2222 wrote:

Alphysse helped but kinda wrote:

Try something like this:
good
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
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides

pls wrote:

plz —->
In a project where basketball is the background and neigh pony is the character with the script


thanks cannedkoolaid for the banner!
highlight then ctrl shift down to see the rest of my siggy
scratchgaming2222

i wrote:

Hi! This sight is really a mess.


if you see this make a New topic called plup on show and tell
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)

i wrote:

fixed

forever
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
Maybe not fixed

Last edited by scratchgaming2222 (Oct. 4, 2021 00:44:57)



thanks cannedkoolaid for the banner!
highlight then ctrl shift down to see the rest of my siggy
scratchgaming2222

i wrote:

Hi! This sight is really a mess.


if you see this make a New topic called plup on show and tell
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)

scratchgaming2222 wrote:

Alphysse helped but kinda wrote:

Try something like this:
good
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
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides
Ah, here's some code that'll work for that:

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)

Alphysse wrote:

scratchgaming2222 wrote:

Alphysse helped but kinda wrote:

Try something like this:
good
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
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides
Ah, here's some code that'll work for that:

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
Thanks


thanks cannedkoolaid for the banner!
highlight then ctrl shift down to see the rest of my siggy
scratchgaming2222

i wrote:

Hi! This sight is really a mess.


if you see this make a New topic called plup on show and tell
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)

scratchgaming2222 wrote:

Alphysse wrote:

scratchgaming2222 wrote:

Alphysse helped but kinda wrote:

Try something like this:
good
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
This looks good but the sprite that has the script has to dissappear and say u win goodbye before it hides
Ah, here's some code that'll work for that:

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
Thanks
Now make it into a project plz


thanks cannedkoolaid for the banner!
highlight then ctrl shift down to see the rest of my siggy
scratchgaming2222

i wrote:

Hi! This sight is really a mess.


if you see this make a New topic called plup on show and tell

Powered by DjangoBB