Discuss Scratch
- Discussion Forums
- » Suggestions
- » Mouse/Key Press Emulation Blocks
- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
What? You can't implement a key press trigger into a block. No support, Why make that ask the forums to that block when you can make a block?when gf clicked
block
define block
...
No edit, king of the page.
- bluedragon8633
-
1000+ posts
Mouse/Key Press Emulation Blocks
You would make the games on a PC or computer, and have the games made so people can play them on a mobile device.
THIS IS IMPORTANT; IT WILL ANSWER LOTS OF QUESTIONS:
As for Bluedragon8633, this code is mainly to trigger events during the game, not for testing.
Also, imagine this:
You have a game, a fully designed platformer. You have three arrow keys on the screen, up, left, and right.
When the player presses the up arrow, the character jumps. Now, instead of having the code:when this sprite clickedThe jumping scripts would already be inside an if then, and who wants to make them all over again for the broadcast?!
broadcast [up v]//and in the character sprite. . .
when I receive [up v]
Jumping scripts::grey
Instead, just go like this:when this sprite clickedNote that there could also be a and wait block, for other purposes.
trigger event key (up arrow v)::events
Okay, now I get it. Thanks- but I still think the UI needs some major improvements.
All right, full support!
- ThisFeelsScratchy
-
100+ posts
Mouse/Key Press Emulation Blocks
look at this replyWhat? You can't implement a key press trigger into a block. No support, Why make that ask the forums to that block when you can make a block?when gf clicked
block
define block
...
blablablabla
ok
- ThisFeelsScratchy
-
100+ posts
Mouse/Key Press Emulation Blocks
I made a mistake on that other reply.
- Chiroyce
-
1000+ posts
Mouse/Key Press Emulation Blocks
obese blocks as they look more appealing and help some.I actually like the

- the2000
-
1000+ posts
Mouse/Key Press Emulation Blocks
I was actually going to say “obese blocks” too, but I thought it sounded a little too crude. I guess great minds think alikeobese blocks as they look more appealing and help some.I actually like the

- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
What about if it's in a separate sprite? Custom blocks only last for one sprite.look at this replyWhat? You can't implement a key press trigger into a block. No support, Why make that ask the forums to that block when you can make a block?when gf clicked
block
define block
...
blablablabla- snip- ]
- bluedragon8633
-
1000+ posts
Mouse/Key Press Emulation Blocks
Are universal custom blocks for all sprites a topic worth making? Slightly irrelevant, but it's interesting. What about if it's in a separate sprite? Custom blocks only last for one sprite.
- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
Hmm. . .I'll create a new discussion unless it's a dupe.Are universal custom blocks for all sprites a topic worth making? Slightly irrelevant, but it's interesting. What about if it's in a separate sprite? Custom blocks only last for one sprite.
- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
Bump 
Maybe this is the wrong time, but whatever.

Maybe this is the wrong time, but whatever.
- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
bump Bump
Maybe this is the wrong time, but whatever.
- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
Yes, it's a dupe.Hmm. . .I'll create a new discussion unless it's a dupe.Are universal custom blocks for all sprites a topic worth making? Slightly irrelevant, but it's interesting. What about if it's in a separate sprite? Custom blocks only last for one sprite.
- TheAdriCoolManDude
-
1000+ posts
Mouse/Key Press Emulation Blocks
Support, this could be useful for testing events in the project.
- han614698
-
1000+ posts
Mouse/Key Press Emulation Blocks
Yeah, this is mainly for testing. Support, this could be useful for testing events in the project.
- Discussion Forums
- » Suggestions
-
» Mouse/Key Press Emulation Blocks