Discuss Scratch

MichaelOlifant
Scratcher
35 posts

Snap! user discussion

djdolphin wrote:

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.
You could post it on http://www.minecraftforum.net/

The CAPITALBOYS will protect me from kumquats.
jamesmaustin
New to Scratch
1 post

Snap! user discussion

I'm having an issue with something I'm working on in Snap. The code clones a plant, and the resulting clones are supposed to grow. The “when I start as a clone” block seems to be very finicky, and gets worse when more things are introduced. I need to run a forever loop within that block, and it works if I click on it, but turns off if I hit stop, or if I move to the script page for that sprite, or even seemingly at random. Does anyone have a solution/workaround?

Here's the project:
http://snap.berkeley.edu/snapsource/snap.html#present:Username=jamesmaustin&ProjectName=garden
Jens
Scratcher
100+ posts

Snap! user discussion

from a first glance over your project it's clear that it's not the clones that are causing the hiccups but massive use of color collision detection. Try to replace color collision detection with sprite collision detection and everything will be lightening fast and responsive!
ashduggan
New to Scratch
5 posts

Snap! user discussion

I am having trouble working with a question and answer format game. I have this as my current code:

http://imgur.com/096ViYP

No matter what I type in as the answer all I get back is the else statement. Even if I copy and paste the exact answer it says its wrong. This code works fine in Scratch so I am wondering why it is not working in Snap.

Last edited by ashduggan (Feb. 3, 2017 15:28:55)

BookOwl
Scratcher
1000+ posts

Snap! user discussion

ashduggan wrote:

I am having trouble working with a question and answer format game. I have this as my current code:

http://imgur.com/096ViYP

No matter what I type in as the answer all I get back is the else statement. Even if I copy and paste the exact answer it says its wrong. This code works fine in Scratch so I am wondering why it is not working in Snap.
Can you save and share your project in Snap!? That would make much easier for us to find out what's wrong.

who needs signatures
ashduggan
New to Scratch
5 posts

Snap! user discussion

BookOwl wrote:

Can you save and share your project in Snap!? That would make much easier for us to find out what's wrong.

Sure thing here it is: http://snap.berkeley.edu/snapsource/snap.html#present:Username=nmd102team12&ProjectName=Group

If you click on the Aquarius sprite it should bring up the code I'm having trouble with.

Last edited by ashduggan (Feb. 3, 2017 16:00:45)

BookOwl
Scratcher
1000+ posts

Snap! user discussion

ashduggan wrote:

BookOwl wrote:

Can you save and share your project in Snap!? That would make much easier for us to find out what's wrong.

Sure thing here it is: http://snap.berkeley.edu/snapsource/snap.html#present:Username=nmd102team12&ProjectName=Group

If you click on the Aquarius sprite it should bring up the code I'm having trouble with.
I looked at your project, and somehow you have a second blue answer block defined that just returns an empty string. If you delete that block and use the Snap! answer block your project works

who needs signatures
ashduggan
New to Scratch
5 posts

Snap! user discussion

BookOwl wrote:

ashduggan wrote:

BookOwl wrote:

Can you save and share your project in Snap!? That would make much easier for us to find out what's wrong.

Sure thing here it is: http://snap.berkeley.edu/snapsource/snap.html#present:Username=nmd102team12&ProjectName=Group

If you click on the Aquarius sprite it should bring up the code I'm having trouble with.
I looked at your project, and somehow you have a second blue answer block defined that just returns an empty string. If you delete that block and use the Snap! answer block your project works


Wow I'm such a scatterbrain thank you that did fix it. I'm not sure why that second answer was there.
bloopperson
New to Scratch
5 posts

Snap! user discussion

I am working on a space invaders project, I figured out how to make the player shoot and I cloned all the enemies, but whenever the bullet hits one of the clones, all f them disappear, how do I fix this? How do I make it so only one enemy disappears at once?
xly
Scratcher
100+ posts

Snap! user discussion

bloopperson wrote:

I am working on a space invaders project, I figured out how to make the player shoot and I cloned all the enemies, but whenever the bullet hits one of the clones, all f them disappear, how do I fix this? How do I make it so only one enemy disappears at once?

Look at this : http://snap.berkeley.edu/snapsource/snap.html#present:Username=xleroy&ProjectName=120-invadermove
gdpr533f604550b2f20900645890
Scratcher
1000+ posts

Snap! user discussion

xly wrote:

bloopperson wrote:

I am working on a space invaders project, I figured out how to make the player shoot and I cloned all the enemies, but whenever the bullet hits one of the clones, all f them disappear, how do I fix this? How do I make it so only one enemy disappears at once?

Look at this : http://snap.berkeley.edu/snapsource/snap.html#present:Username=xleroy&ProjectName=120-invadermove
The project works for me. Only the enemies whom the player hits disappear.
BookOwl
Scratcher
1000+ posts

Snap! user discussion

Chibi-Matoran wrote:

xly wrote:

bloopperson wrote:

I am working on a space invaders project, I figured out how to make the player shoot and I cloned all the enemies, but whenever the bullet hits one of the clones, all f them disappear, how do I fix this? How do I make it so only one enemy disappears at once?

Look at this : http://snap.berkeley.edu/snapsource/snap.html#present:Username=xleroy&ProjectName=120-invadermove
The project works for me. Only the enemies whom the player hits disappear.
That's because this is @xly's working version. @bloopperson hasn't shared his/hers.

who needs signatures
crossalice
Scratcher
9 posts

Snap! user discussion

How do you store data on Snap? I think I asked similar question before, but now I am having a trouble with storing data again. I tried making the list to be transient. But when there is a new data, I want to store it in the list, yet whenever I press the start button, it resets the data. I found a function called map in snap. But I am not sure how to use it.

Q. How to use map function to store data?
Q. How to store new data entered by the user? (such as cloud service on Scratch)

Thank you!
MichaelOlifant
Scratcher
35 posts

Snap! user discussion

crossalice wrote:

How do you store data on Snap? I think I asked similar question before, but now I am having a trouble with storing data again. I tried making the list to be transient. But when there is a new data, I want to store it in the list, yet whenever I press the start button, it resets the data. I found a function called map in snap. But I am not sure how to use it.

Q. How to use map function to store data?
Q. How to store new data entered by the user? (such as cloud service on Scratch)

Thank you!
Mike:
A1: Map is a higher-order-function and it takes a function because it's called a higher-order-function
One of the examples are:
(map ((() x ()::operators)@addInput::grey ring) over (list[1][2][3][4][5]@delInput@addInput::list)::list)
A2: It's not implemented yet.

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

Snap! user discussion

crossalice wrote:

yet whenever I press the start button, it resets the data.
Do you mean pressing the green flag? That shouldn't change what's in any variables unless you have a script in your project that does so.

Maybe you should share your project so we can look at it?

harleytheboss1
New to Scratch
1 post

Snap! user discussion

When i turn my project into an app in Snap!, but when i do, noises don't work. Is this an issue, or is it something i can fix?
bharvey
Scratcher
1000+ posts

Snap! user discussion

harleytheboss1 wrote:

When i turn my project into an app in Snap!, but when i do, noises don't work. Is this an issue, or is it something i can fix?
It's beyond our control. Different browsers have different levels of support for sound. Sometimes you can fix it by converting your sound file (in other software) to a different file format. Wav is most likely to work.

Scratch_Mapping
Scratcher
100+ posts

Snap! user discussion

How do you create your own block libraries?

 :: obsolete
:: #FFFFFF
:: pen
bharvey
Scratcher
1000+ posts

Snap! user discussion

Scratch_Mapping wrote:

How do you create your own block libraries?
From the file menu, select “Export blocks”; this will give you a dialog window in which you can select which blocks to include. (Hint: If the blocks you care about use other custom blocks, you have to include those too!) If you right-click in that window you can check or uncheck all the blocks at once.

Depending on your browser, this will either directly save an .xml file in your download folder or open a browser tab which you can then save as an .xml file.

To load the library file into a project, just drag it in, or choose File>Import.

Last edited by bharvey (Feb. 15, 2017 02:11:34)


Scratch_Mapping
Scratcher
100+ posts

Snap! user discussion

I am trying to make these in Snap!:
[break out v] of loop::control cap
[continue with next iteration v] of loop::control cap

 :: obsolete
:: #FFFFFF
:: pen

Powered by DjangoBB