Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Snap! user discussion
- djdolphin
- Scratcher
1000+ posts
Snap! user discussion
Should that option be showing up for the stage too? It can't be dragged… Hi Stefano,
did you notice that Snap has more options than Scratch in the “When I am … ” hat block? For example there is a “When I am dropped” option you can select, which might just be what you want, because then you case use “real” draggin instead of having to invent your own mouse-following imitation of dragging.
!
- s_federici
- Scratcher
500+ posts
Snap! user discussion
Hi Stefano,
did you notice that Snap has more options than Scratch in the “When I am … ” hat block? For example there is a “When I am dropped” option
Excellent! I hadn't noticed that. Snap has undergone a nice evolution under the hood! That can be really useful. But what I'm worried about is that “regular” Scratch projects of my students (that is projects that do not have fancy effects or sound blocks) won't work as expected when imported in Snap. I know that Snap and Scratch are not meant to be fully compatible, but it is very nice to be able to run Scratch projects without having to edit them. Can you please give me a quick advice on where should I look for in the Snap code in order to make the “when I am clicked” hat trigger even when the mouse is clicked on the sprite but then it is moved before it is released? Thanks in advance
Last edited by s_federici (Dec. 22, 2015 13:45:55)
- oivvio
- New to Scratch
2 posts
Snap! user discussion
Wow! Tons of activity while I was asleep, including three actual teachers! Hi, welcome, everybody.OK, I added a library consisting entirely of the SET PEN COLOR TO R: G: B: block from xly's project above (thanks, xly!). So, file>Libraries… and choose the RGB library and you can build your own color space. I'm having trouble getting lighter colors.
This is wonderful. Thanks a bunch! It's rare to see this kind of responsiveness in an software project.
- Jens
- Scratcher
100+ posts
Snap! user discussion
Hi Stefano,
if you want a sprite to react when the mouse button is merely pressed down on it (without having to be released again) you can simply choose the “pressed” option in the “When I am …” hat block (you can also use this option when working with the source code).
if you want a sprite to react when the mouse button is merely pressed down on it (without having to be released again) you can simply choose the “pressed” option in the “When I am …” hat block (you can also use this option when working with the source code).
- s_federici
- Scratcher
500+ posts
Snap! user discussion
if you want a sprite to react when the mouse button is merely pressed down on it (without having to be released again) you can simply choose the “pressed” option in the “When I am …” hat block
Thanks Jens, now my script works as expected I'm going to ask djdolphin to change the behaviour of the excellent Snapin8r2 then.
Last edited by s_federici (Dec. 22, 2015 13:46:34)
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
The homepage still says “the current version is 4.0.3” below the run buttons.
202e-202e-202e-202e-202e UNI-CODE~~~~~
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
Fixed. Thanks! The homepage still says “the current version is 4.0.3” below the run buttons.
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
Great! By the way almost 1000 posts lol.Fixed. Thanks! The homepage still says “the current version is 4.0.3” below the run buttons.
202e-202e-202e-202e-202e UNI-CODE~~~~~
- Lillbre
- Scratcher
7 posts
Snap! user discussion
I can not write numbers in the operators in snap, using iPad. Anyone know why?
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
We don't have a Scratch-like front page yet (working on it). For now you can send people URLs to your shared projects. (When you share a project, its URL will be in the URL bar of your browser.) how do I view other people's projects on Snap?
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
Using Safari? What version? I can not write numbers in the operators in snap, using iPad.
- frodewin
- Scratcher
500+ posts
Snap! user discussion
In a Snap! project, I have a variable for displaying the score. However, the variable is behind the other sprites. Is there a way to get it to front? I already tried another "show variable “ block and also a ”hide variable “ + ”show variable " combination, no success.
- Jens
- Scratcher
100+ posts
Snap! user discussion
you can make the overlapping sprite(s) go back enough layers so they end up behind the watcher.
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
Or you can use some javascript hax you can make the overlapping sprite(s) go back enough layers so they end up behind the watcher.
[get watcher].[bring to front]
202e-202e-202e-202e-202e UNI-CODE~~~~~
- frodewin
- Scratcher
500+ posts
Snap! user discussion
you can make the overlapping sprite(s) go back enough layers so they end up behind the watcher.
Thanks a lot, now I finished my first larger Snap! project:
Diamond Hunter
Is there a place to put this where others can find it and comment?
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
We don't have a Scratch-like front page (yeah, we get it that everyone wants that ) but if you share it and post the URL here, interested people might check it out. Is there a place to put this where others can find it and comment?
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
Totally hacky, but you can do anything with JavaScript ;P @liam: Nice hack!
(Like making an AJAX request to my server with the person who runs the project's password.. perhaps prevent access to the variable where that's stored from the JS block?)
202e-202e-202e-202e-202e UNI-CODE~~~~~
- DigiTechs
- Scratcher
500+ posts
Snap! user discussion
Totally hacky, but you can do anything with JavaScript ;P @liam: Nice hack!
(Like making an AJAX request to my server with the person who runs the project's password.. perhaps prevent access to the variable where that's stored from the JS block?)
Hooray! Sandboxing!
I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.