Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Snap! user discussion
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
If your JS code returns a value, do it this way:
Then you can just do whatever you want with the value, e.g., assign it to a variable.
P.S. Look in Open>Examples>JSFunction for more examples. If you want to use a Snap! list in JS, use myList.asArray(); if you want to use a Snap! number, use +myNumber (monadic +).
Then you can just do whatever you want with the value, e.g., assign it to a variable.
P.S. Look in Open>Examples>JSFunction for more examples. If you want to use a Snap! list in JS, use myList.asArray(); if you want to use a Snap! number, use +myNumber (monadic +).
Last edited by bharvey (Jan. 8, 2017 22:57:21)
- xly
- Scratcher
100+ posts
Snap! user discussion
If your JS code returns a value, do it this way:
Then you can just do whatever you want with the value, e.g., assign it to a variable.
P.S. Look in Open>Examples>JSFunction for more examples. If you want to use a Snap! list in JS, use myList.asArray(); if you want to use a Snap! number, use +myNumber (monadic +).
For examples of Snap! JS add-on, look at :
http://www.xleroy.net/ByobTuto/WebJSnap/JSnap.html
- crossalice
- Scratcher
9 posts
Snap! user discussion
How do you add text in Snap?
Like for Scratch, on top of the costume, you can write words, but for Snap I can't find it.
Help please!
Like for Scratch, on top of the costume, you can write words, but for Snap I can't find it.
Help please!
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
Sorry, no text in the paint editor yet. How do you add text in Snap?
Like for Scratch, on top of the costume, you can write words, but for Snap I can't find it.
You can use the LABEL block (import tools) to write text on the stage, then right-click on the stage to take a picture of the text to use as a costume. If you STAMP a costume first, you can put the text on top of it.
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
Thanks! and nice pun. So I have been using Snap! for a while now and I have to say…
it's first class.
- MichaelOlifant
- Scratcher
35 posts
Snap! user discussion
What's the swear word?
The CAPITALBOYS will protect me from kumquats.
- birdoftheday
- Scratcher
500+ posts
Snap! user discussion
Wrong topic?
Am I the only person who likes 3.0 better than 2.0, or do the people who do just not talk about it?
- MichaelOlifant
- Scratcher
35 posts
Snap! user discussion
Will we use minecraft forge? or is it compatible for 1.11?I abandoned that a while ago because command blocks are a huge pain in the neck to work with. But I recently started working on a Minecraft mod that will do the same thing (and more) and won't compromise any of Snap!'s features. I might have something usable soon-ish if everything works as planned.!Where is it? Squid
The CAPITALBOYS will protect me from kumquats.
- MichaelOlifant
- Scratcher
35 posts
Snap! user discussion
Right topic. Wrong topic?
The CAPITALBOYS will protect me from kumquats.
- Jonathan50
- Scratcher
1000+ posts
Snap! user discussion
What where you asking about?Right topic. Wrong topic?
Not yet a Knight of the Mu Calculus.
- _nix
- Scratcher
1000+ posts
Snap! user discussion
Something that specifically relates to Minecraft mods, particularly Squid, the mod djdolphin was talking about.What where you asking about?Right topic. Wrong topic?
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- djdolphin
- Scratcher
1000+ posts
Snap! user discussion
It'll use Forge for Minecraft 1.11. I haven't had much time to work on it unfortunately. Will we use minecraft forge? or is it compatible for 1.11?
!
- MichaelOlifant
- Scratcher
35 posts
Snap! user discussion
I've upgraded s_frederici's BlockC to this:
http://snap.berkeley.edu/snapsource/snap.html#present:Username=michaelolifant&ProjectName=blockC-1xtab-6.0alpha
Now has random numbers, bit-wise operators and more! (requires a never version of Snap.)
http://snap.berkeley.edu/snapsource/snap.html#present:Username=michaelolifant&ProjectName=blockC-1xtab-6.0alpha
Now has random numbers, bit-wise operators and more! (requires a never version of Snap.)
The CAPITALBOYS will protect me from kumquats.
- birdoftheday
- Scratcher
500+ posts
Snap! user discussion
Jonathan, he said ‘What’s the swear word?' so I'm confused what he's talking about
Am I the only person who likes 3.0 better than 2.0, or do the people who do just not talk about it?
- _nix
- Scratcher
1000+ posts
Snap! user discussion
Oh, that makes more sense. See, this is why we have [quote]s! Jonathan, he said ‘What’s the swear word?' so I'm confused what he's talking about
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- Jonathan50
- Scratcher
1000+ posts
Snap! user discussion
@birdoftheday was asking about Something that specifically relates to Minecraft mods, particularly Squid, the mod djdolphin was talking about.
What's the swear word?
Edit: Oh, birdoftheday posted before me xD sorry
Last edited by Jonathan50 (Jan. 25, 2017 22:36:31)
Not yet a Knight of the Mu Calculus.
- frodewin
- Scratcher
500+ 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?
Are there any news on the Scratch-like front page yet?
- joefarebrother
- Scratcher
500+ posts
Snap! user discussion
I remember at one point in one of the Snap! threads saying there was a swear word in the source code which might need to be removed i we link to the github. Jonathan, he said ‘What’s the swear word?' so I'm confused what he's talking about
They probably clicked “new posts” after coming back from not having visited for a while, saw this post near the bottom of a page, and replied to it without using a [quote], forgetting it was the wrong page.