Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » When (var) key pressed hacked hat block
- Paperbagged
- Scratcher
55 posts
When (var) key pressed hacked hat block
I need a hat block like the one up in the subject. Thanks.
]
Don't get a Chromebook in the first place. I think I'd rather have a Commodore 64.if <[Well played.] = [1]> then
Slow clap.
end
- MrVanderzee
- Scratcher
19 posts
When (var) key pressed hacked hat block
Like this?
etc…..?
when [any v] key pressed
if <(variable) = [a]> then
say [do something]
end
if <(variable) = [b]> then
say [do something else]
end
if <(variable) = [c]> then
say [do something different]
end
etc…..?
- Mole_Gaming
- Scratcher
100+ posts
When (var) key pressed hacked hat block
I believe you're looking for this?
when (var) key pressedI can't figure out how to make this, but I'm pretty sure it's possible.
am can program above good
- asivi
- Scratcher
1000+ posts
When (var) key pressed hacked hat block
https://scratch.mit.edu/projects/112026291/
Sorry, it isn´t that you want but the sort of mod you want doesn't work with events' blocks.
Sorry, it isn´t that you want but the sort of mod you want doesn't work with events' blocks.
Last edited by asivi (May 31, 2016 18:14:42)
- Paperbagged
- Scratcher
55 posts
When (var) key pressed hacked hat block
Yes, thats exactly what I need! I believe you're looking for this?when (var) key pressedI can't figure out how to make this, but I'm pretty sure it's possible.
]
Don't get a Chromebook in the first place. I think I'd rather have a Commodore 64.if <[Well played.] = [1]> then
Slow clap.
end
- Paperbagged
- Scratcher
55 posts
When (var) key pressed hacked hat block
https://scratch.mit.edu/projects/112026291/I actually have a modded block like that in my backpack. I tried it once, but it didn't work. I tried doing
Sorry, it isn´t that you want but the sort of mod you want doesn't work with events' blocks.
when green flag clickedKind of like that, my post was rushed, so you guys get the idea xD
if key var pressed then
broadcast pay out
set var to b
end
end
Last edited by Paperbagged (May 31, 2016 18:35:44)
]
Don't get a Chromebook in the first place. I think I'd rather have a Commodore 64.if <[Well played.] = [1]> then
Slow clap.
end
- Paperbagged
- Scratcher
55 posts
When (var) key pressed hacked hat block
Yes! This is what I tried only the variable would change to b if the a key was pressed but it would lag to heck and not change the variable. Also I used when green flag pressed and a if key pressed var block. Bitcoin Billionaire Remake. Like this?when [any v] key pressed
if <(variable) = [a]> then
say [do something]
end
if <(variable) = [b]> then
say [do something else]
end
if <(variable) = [c]> then
say [do something different]
end
etc…..?
Last edited by Paperbagged (May 31, 2016 18:58:28)
]
Don't get a Chromebook in the first place. I think I'd rather have a Commodore 64.if <[Well played.] = [1]> then
Slow clap.
end
- MrVanderzee
- Scratcher
19 posts
When (var) key pressed hacked hat block
How about:
when [any v] key pressed
if <(variable) = [a]> then
say [do something]
set [variable v] to [b]
stop [this script v]
end
if <(variable) = [b]> then
say [do something else]
set [variable v] to [c]
stop [this script v]
end
if <(variable) = [c]> then
say [do something different]
set [variable v] to [d]
stop [this script v]
end
Last edited by MrVanderzee (May 31, 2016 18:58:18)
- Paperbagged
- Scratcher
55 posts
When (var) key pressed hacked hat block
The user would have to type in abc order. Like key var pressed block How about:when [any v] key pressed
if <(variable) = [a]> then
say [do something]
set [variable v] to [b]
stop [this script v]
end
if <(variable) = [b]> then
say [do something else]
set [variable v] to [c]
stop [this script v]
end
if <(variable) = [c]> then
say [do something different]
set [variable v] to [d]
stop [this script v]
end
Last edited by Paperbagged (May 31, 2016 19:00:31)
]
Don't get a Chromebook in the first place. I think I'd rather have a Commodore 64.if <[Well played.] = [1]> then
Slow clap.
end
- Discussion Forums
- » Help with Scripts
- » When (var) key pressed hacked hat block