Discuss Scratch

Paperbagged
Scratcher
55 posts

When (var) key pressed hacked hat block

I need a hat block like the one up in the subject. Thanks.

]

__init__ wrote:

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?

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 pressed
I 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.

Last edited by asivi (May 31, 2016 18:14:42)

Paperbagged
Scratcher
55 posts

When (var) key pressed hacked hat block

Mole_Gaming wrote:

I believe you're looking for this?
when (var) key pressed
I can't figure out how to make this, but I'm pretty sure it's possible.
Yes, thats exactly what I need!

]

__init__ wrote:

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

asivi wrote:

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.
I actually have a modded block like that in my backpack. I tried it once, but it didn't work. I tried doing
when green flag clicked
if key var pressed then
broadcast pay out
set var to b
end


end
Kind of like that, my post was rushed, so you guys get the idea xD

Last edited by Paperbagged (May 31, 2016 18:35:44)


]

__init__ wrote:

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

MrVanderzee wrote:

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…..?
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.

Last edited by Paperbagged (May 31, 2016 18:58:28)


]

__init__ wrote:

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

MrVanderzee wrote:

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
The user would have to type in abc order. Like key var pressed block

Last edited by Paperbagged (May 31, 2016 19:00:31)


]

__init__ wrote:

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
drmcw
Scratcher
1000+ posts

When (var) key pressed hacked hat block

Powered by DjangoBB