Discuss Scratch

cobraguy
Scratcher
1000+ posts

Block Suggestion.

Not sure if this is the section to suggest, if it isn't tell me so I can move it.
I love all the new blocks, but I have a suggestion. How about a “Mouse onscreen?” block? It would be used to detect if the mouse is on the stage. I have a project (here) that you must have your mouse on the screen to play. I made an onscreen detector that is not reliable. You can bypass it if you move your mouse fast.

The ‘Mouse onscreen?’ block would prevent that from happening. If you took your mouse of the player, it could detect it. Don't even know if it's possible to code, I think it is, but I don't know much about programming blocks. Just a suggestion. Tell me what you think of the idea.

Last edited by cobraguy (Feb. 19, 2013 00:55:57)

Failord
Scratcher
1000+ posts

Block Suggestion.

Sounds like a good idea to me! I think it could be possible to code. After all, it quits recieving stimulus after the mouse leaves.

Thanks for the ride, Scratch Team and community! Unfortunately, the time has come for me to move on from Scratch, so I'll no longer be using the forums. Thanks again, and farewell!
Invisible text! This will show you if a profile I claim to be mine IS mine. Just remember to visit the profile and see if I confirmed in the comments.
For old time's sake, see the revolutionary Laser Battle 2.0! Also see Unstoppable Game!

And no, the evil kumquats didn't alter my signature…
cobraguy
Scratcher
1000+ posts

Block Suggestion.

Failord wrote:

After all, it quits recieving stimulus after the mouse leaves.
The thing is, if your not in the editor, than if you flick your mouse fast enough, it doesn't sense the new x and y position. It stays the same. I'm hoping a block like the one I suggested could prevent that.
Failord
Scratcher
1000+ posts

Block Suggestion.

Yes, there most certainly needs to be updates…

Thanks for the ride, Scratch Team and community! Unfortunately, the time has come for me to move on from Scratch, so I'll no longer be using the forums. Thanks again, and farewell!
Invisible text! This will show you if a profile I claim to be mine IS mine. Just remember to visit the profile and see if I confirmed in the comments.
For old time's sake, see the revolutionary Laser Battle 2.0! Also see Unstoppable Game!

And no, the evil kumquats didn't alter my signature…
han614698
Scratcher
1000+ posts

Block Suggestion.

bump. cool suggestion



this is not a necropost; there is no necroposting in suggestions of this type

<Scratch Wikian | Forum Helper | Almost to 6000 Posts! | Please be aware I may mistype things, my wrist is fractured>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




ScolderCreations
Scratcher
1000+ posts

Block Suggestion.

No support, the workaround is quite simple (use < and >), and considering the very few times you would need this block, I think the workaround would be more convenient then having an extra block in the editor that most people wouldn't use.

Quantum-Cat
Scratcher
1000+ posts

Block Suggestion.

No support, you can do this easily using this workaround (or any other slight variations):

<([abs v] of (mouse x)) > [240]>
<([abs v] of (mouse y)) > [180]>

Notice: Everything below the solid grey line (↑↑) above is my signature and appears on every post I make. Here, it is okay for you to advertise
your projects and other creations. To create your own, scroll to the bottom of the Discussion Home page and select “change your signature”.

I aplogise if I seem a bit too serious on the forums, but I am always open to feedback on my profile.
Past PPTBF Curator || Forum Helper (TFH) || Some Python, HTML and C

————————————————————————————

————————————————————————————
Quantum-Cat

Powered by DjangoBB