Discuss Scratch

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 +).

Last edited by bharvey (Jan. 8, 2017 22:57:21)


xly
Scratcher
100+ posts

Snap! user discussion

bharvey wrote:

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!
Molive
Scratcher
100+ posts

Snap! user discussion

So I have been using Snap! for a while now and I have to say…
it's first class.


~Molive

“You're not a sailor?”
“No, I make money off of other people's talent.”
“…You're a project lead on a computer game?”
-The Curse Of Monkey Island

- TW9saXZlJ3Mgc2lnbmF0dXJlIGlzIHRoZSBCZXN0IFNpZ25hdHVyZSAg -


bharvey
Scratcher
1000+ posts

Snap! user discussion

crossalice wrote:

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.
Sorry, no text in the paint editor yet.

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

Molive wrote:

So I have been using Snap! for a while now and I have to say…
it's first class.
Thanks! and nice pun.

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

djdolphin wrote:

MichaelOlifant wrote:

djdolphin wrote:

Squid!
Where is it?
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.
Will we use minecraft forge? or is it compatible for 1.11?

The CAPITALBOYS will protect me from kumquats.
MichaelOlifant
Scratcher
35 posts

Snap! user discussion

birdoftheday wrote:

Wrong topic?
Right topic.

The CAPITALBOYS will protect me from kumquats.
Jonathan50
Scratcher
1000+ posts

Snap! user discussion

MichaelOlifant wrote:

birdoftheday wrote:

Wrong topic?
Right topic.
What where you asking about?

Not yet a Knight of the Mu Calculus.
_nix
Scratcher
1000+ posts

Snap! user discussion

Jonathan50 wrote:

MichaelOlifant wrote:

birdoftheday wrote:

Wrong topic?
Right topic.
What where you asking about?
Something that specifically relates to Minecraft mods, particularly Squid, the mod djdolphin was talking about.

══ 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

MichaelOlifant wrote:

Will we use minecraft forge? or is it compatible for 1.11?
It'll use Forge for Minecraft 1.11. I haven't had much time to work on it unfortunately.

!
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.)

The CAPITALBOYS will protect me from kumquats.
Jens
Scratcher
100+ posts

Snap! user discussion

Whoa, that's pretty cool! Thanks for sharing.
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

birdoftheday wrote:

Jonathan, he said ‘What’s the swear word?' so I'm confused what he's talking about
Oh, that makes more sense. See, this is why we have [quote]s!

══ 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

_nix wrote:

Something that specifically relates to Minecraft mods, particularly Squid, the mod djdolphin was talking about.
@birdoftheday was asking about

MichaelOlifant wrote:

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

bharvey wrote:

Except wrote:

how do I view other people's projects on Snap?
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.)

Are there any news on the Scratch-like front page yet?



You can also find my best projects here or stop at my profile and say hi!
joefarebrother
Scratcher
500+ posts

Snap! user discussion

birdoftheday wrote:

Jonathan, he said ‘What’s the swear word?' so I'm confused what he's talking about
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.

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.


And it was delicious! Play TBGs! Check out my Scheme Interpreter!
;

Powered by DjangoBB