Discuss Scratch

bharvey
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

The reporter below doesn't report “atchscray”
Um, it works for me. Please share your project.

bharvey
Scratcher
1000+ posts

Snap! user discussion

21399annie wrote:

would it be possible to allow us to use text when creating a sprite?
You mean, putting text in the costume? Yeah, that's on our list; it'll happen eventually. (Actually we want to invent a new Text Box object that can be used as a costume but can also be edited interactively and can be read and written by your program.) Meanwhile, two ideas: (1) Use an external editor to display the text, take a screenshot, and import it as a costume; (2) Use the LABEL block to write the text on the stage, then right-click the stage to take a picture of it for use as a costume.

PS I'm glad you like Snap!!

21399annie
Scratcher
2 posts

Snap! user discussion

bharvey wrote:

21399annie wrote:

would it be possible to allow us to use text when creating a sprite?
You mean, putting text in the costume? Yeah, that's on our list; it'll happen eventually. (Actually we want to invent a new Text Box object that can be used as a costume but can also be edited interactively and can be read and written by your program.) Meanwhile, two ideas: (1) Use an external editor to display the text, take a screenshot, and import it as a costume; (2) Use the LABEL block to write the text on the stage, then right-click the stage to take a picture of it for use as a costume.

PS I'm glad you like Snap!!
Thank you, can't wait to see it!
Puppers
Scratcher
23 posts

Snap! user discussion

Hey, I'm new to Snap! and I need help with building an app or Windows 32-bit. See, I import the .xml file and I choose “Windows 32-bit” but when I hit “Build my app,” it takes so long my computer dies before it's done and then I have to restart. I'm using firefox. Should I try chrome instead?

What did the board say to the tire? “I'm bored!” “I'm tired” said the tire.
16 translations later…
What does the board say to the fence? I am pierced! I am tired said the fence.

bromagosa
Scratcher
4 posts

Snap! user discussion

Hi Puppers!

It takes Snapp! quite a while to turn a project into an app, but it usually succeeds in the end.

Can you share your project so that we can take a look?
Gabriel2900
Scratcher
100+ posts

Snap! user discussion

How do you ringify hat blocks?
RealisticallyGrim
New to Scratch
3 posts

Snap! user discussion

I've been having a problem with my snap project I have for school. I have a sprite that is supposed to act like a bouncing ball. and for some reason when the ball falls, it moves much slower than when it comes back up. I'm not sure why this is though. here's a link to it if you want to check it out. But yeah, can anyone explain what's up and how I might be able to fix it? Thanks so much!

http://snap.berkeley.edu/snapsource/snap.html#present:Username=realisticallygrim&ProjectName=Haviland%202.6%20bounce

Last edited by RealisticallyGrim (March 16, 2017 01:54:19)


Small Dog?
bharvey
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

How do you ringify hat blocks?
You don't. What would it mean? Why do you want to do it?

bharvey
Scratcher
1000+ posts

Snap! user discussion

RealisticallyGrim wrote:

I've been having a problem with my snap project I have for school.
Hmm, is this for the AP Create Task? I don't think we're allowed to help with that.

Gabriel2900
Scratcher
100+ posts

Snap! user discussion

bharvey wrote:

Gabriel2900 wrote:

How do you ringify hat blocks?
You don't. What would it mean? Why do you want to do it?
I want to ringify hat blocks like this
({when @greenFlag clicked::control} @addInput::grey ring)
scratchisthebest
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

bharvey wrote:

Gabriel2900 wrote:

How do you ringify hat blocks?
You don't. What would it mean? Why do you want to do it?
I want to ringify hat blocks like this
({when @greenFlag clicked::control} @addInput::grey ring)
But why? The main purpose of ringifying is to be able to use the “run” block - what does “run when green flag clicked” even mean?

I am a Lava Expert
RealisticallyGrim
New to Scratch
3 posts

Snap! user discussion

bharvey wrote:

RealisticallyGrim wrote:

I've been having a problem with my snap project I have for school.
Hmm, is this for the AP Create Task? I don't think we're allowed to help with that.
AP Create Task? Sorry, no. I'm in a TEALS class.

Small Dog?
RealisticallyGrim
New to Scratch
3 posts

Snap! user discussion

RealisticallyGrim wrote:

bharvey wrote:

RealisticallyGrim wrote:

I've been having a problem with my snap project I have for school.
Hmm, is this for the AP Create Task? I don't think we're allowed to help with that.
AP Create Task? Sorry, no. I'm in a TEALS class.
Actually, I was able to figure it out. Though now I have a different question. does anyone know how to create a double-click joker? (click twice to trigger something.)

Last edited by RealisticallyGrim (March 16, 2017 15:59:46)


Small Dog?
bharvey
Scratcher
1000+ posts

Snap! user discussion

RealisticallyGrim wrote:

Though now I have a different question. does anyone know how to create a double-click joker? (click twice to trigger something.)
Use a variable, initial value False. The first click sets it to True. If clicked and already true, do the something.

Gabriel2900
Scratcher
100+ posts

Snap! user discussion

scratchisthebest wrote:

Gabriel2900 wrote:

bharvey wrote:

Gabriel2900 wrote:

How do you ringify hat blocks?
You don't. What would it mean? Why do you want to do it?
I want to ringify hat blocks like this
({when @greenFlag clicked::control} @addInput::grey ring)
But why? The main purpose of ringifying is to be able to use the “run” block - what does “run when green flag clicked” even mean?
this runs when green flag clicked block
jokebookservice1
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

scratchisthebest wrote:

Gabriel2900 wrote:

bharvey wrote:

Gabriel2900 wrote:

How do you ringify hat blocks?
You don't. What would it mean? Why do you want to do it?
I want to ringify hat blocks like this
({when @greenFlag clicked::control} @addInput::grey ring)
But why? The main purpose of ringifying is to be able to use the “run” block - what does “run when green flag clicked” even mean?
this runs when green flag clicked block
Ah, this makes sense.

So
when green flag clicked
basically acts as a
wait until @greenFlag clicked ::control
is this correct?
_nix
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

scratchisthebest wrote:

Gabriel2900 wrote:

bharvey wrote:

Gabriel2900 wrote:

How do you ringify hat blocks?
You don't. What would it mean? Why do you want to do it?
I want to ringify hat blocks like this
({when @greenFlag clicked::control} @addInput::grey ring)
But why? The main purpose of ringifying is to be able to use the “run” block - what does “run when green flag clicked” even mean?
this runs when green flag clicked block
I'm not 100% sure what you mean, but I think you could use broadcasts or custom blocks to do the same thing?

when gf clicked
broadcast [green flag clicked v]

run ({broadcast [green flag clicked v]} @addInput :: grey ring) :: control @addInput

when I receive [green flag clicked v]
...

══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
scratchisthebest
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

this runs when green flag clicked block
It's a hat block. Nothing happens when you run it.

I am a Lava Expert
Gabriel2900
Scratcher
100+ posts

Snap! user discussion

How does this block work?
(JavaScript function \(\ @addInput \)\ \{\ [] } ::operators)
jokebookservice1
Scratcher
1000+ posts

Snap! user discussion

Gabriel2900 wrote:

How does this block work?
(JavaScript function \(\ @addInput \)\ \{\ [] } ::operators)
Well, there is a text-based programming language called JavaScript, and if you want to write some code in that language instead of Snap, you can define a function and it will act like a Snap! one.

Let's do an example of a function that joins two strings together.

function (firstParameter, secondParameter) {
    return firstParameter + secondParameter;
}

is how you would write it in JavaScript. Well, you can write that using the Snap! block like so

(JavaScript function \(\ [firstParameter] [secondParameter] @addInput \)\ \{\ [return firstParameter + secondParameter;] } ::operators)

what's great about this is that you can interact with sprites, the canvas (where the result is displayed) and also some features that are only available in JavaScript (perhaps also a flaw with the block).

For example, pop-ups and playing arbitrary audio becomes much easier with the block.

But how do you run it? Well, you can just use the block just like any other reporter block in Snap!, you can call it

call (JavaScript function \(\ [firstParameter] [secondParameter] @addInput \)\ \{\ [return firstParameter + secondParameter;] } ::operators) [Hello ] [World] @addInput ::control reporter

You can use it as a mapping function over an array, and much much more.

As I say, it can also modify lots of things such as the costumes of snap, something that other blocks in Snap can't do. Good luck!

Last edited by jokebookservice1 (March 19, 2017 21:48:09)

Powered by DjangoBB