Discuss Scratch

han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

ThisFeelsScratchy wrote:

No support, Why make that ask the forums to that block when you can make a block?
when gf clicked
block

define block
...
What? You can't implement a key press trigger into a block.



No edit, king of the page.
bluedragon8633
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

han614698 wrote:

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 clicked
broadcast [up v]//and in the character sprite. . .
when I receive [up v]
Jumping scripts::grey
The jumping scripts would already be inside an if then, and who wants to make them all over again for the broadcast?!
Instead, just go like this:
when this sprite clicked
trigger event key (up arrow v)::events
Note that there could also be a and wait block, for other purposes.

Okay, now I get it. Thanks- but I still think the UI needs some major improvements.
All right, full support!
ThisFeelsScratchy
Scratcher
100+ posts

Mouse/Key Press Emulation Blocks

han614698 wrote:

ThisFeelsScratchy wrote:

No support, Why make that ask the forums to that block when you can make a block?
when gf clicked
block

define block
...
What? You can't implement a key press trigger into a block.
blablablabla
look at this reply

ThisFeelsScratchy wrote:

ok
ThisFeelsScratchy
Scratcher
100+ posts

Mouse/Key Press Emulation Blocks

I made a mistake on that other reply.
Chiroyce
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

dertermenter wrote:

I actually like the obese blocks as they look more appealing and help some.
the2000
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

Chiroyce wrote:

dertermenter wrote:

I actually like the obese blocks as they look more appealing and help some.
I was actually going to say “obese blocks” too, but I thought it sounded a little too crude. I guess great minds think alike
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

ThisFeelsScratchy wrote:

han614698 wrote:

ThisFeelsScratchy wrote:

No support, Why make that ask the forums to that block when you can make a block?
when gf clicked
block

define block
...
What? You can't implement a key press trigger into a block.
blablablabla
look at this reply

ThisFeelsScratchy wrote:

- snip- ]
What about if it's in a separate sprite? Custom blocks only last for one sprite.
bluedragon8633
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

han614698 wrote:

What about if it's in a separate sprite? Custom blocks only last for one sprite.
Are universal custom blocks for all sprites a topic worth making? Slightly irrelevant, but it's interesting.
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

bluedragon8633 wrote:

han614698 wrote:

What about if it's in a separate sprite? Custom blocks only last for one sprite.
Are universal custom blocks for all sprites a topic worth making? Slightly irrelevant, but it's interesting.
Hmm. . .I'll create a new discussion unless it's a dupe.
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

Bump






Maybe this is the wrong time, but whatever.
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

han614698 wrote:

Bump






Maybe this is the wrong time, but whatever.
bump
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

bump (reopened yay)
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

han614698 wrote:

bluedragon8633 wrote:

han614698 wrote:

What about if it's in a separate sprite? Custom blocks only last for one sprite.
Are universal custom blocks for all sprites a topic worth making? Slightly irrelevant, but it's interesting.
Hmm. . .I'll create a new discussion unless it's a dupe.
Yes, it's a dupe.
TheAdriCoolManDude
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

Support, this could be useful for testing events in the project.
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

TheAdriCoolManDude wrote:

Support, this could be useful for testing events in the project.
Yeah, this is mainly for testing.
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

bump
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

bump
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

I forgot about this – bump.
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

bump
han614698
Scratcher
1000+ posts

Mouse/Key Press Emulation Blocks

bump

Powered by DjangoBB