Discuss Scratch

WaffleCODEZ
Scratcher
68 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Sorry if this is a bad question, this is my first extension.
I want to set my reporter (waffles) to an option with a dropdown menu (the options would be “taste good” and “don't taste good” (yes I notice this extension is silly))
How would I do that at all?
My code is -

(function(ext) {
   
    ext._shutdown = function() {};
    // Status reporting code
    
    ext._getStatus = function() {
        return {status: 2, msg: 'Ready'};
    };
        
    };
	  ext.go_to_link = function(website) {
        window.location.href = website;
	  };
	  
    // Blocks
    var descriptor = {
        blocks: [
		// Block type, block name, function name
		 ['h', 'when waffles are not good', 'when_waffles'],
		 [' ', 'Go to site %s', 'go_to_link', 'https://scratch.mit.edu'],
		 ['r', 'waffles', 'wafflesvar'],
		
		
        ]
    };
    // Register-er!
    ScratchExtensions.register('WaffleScratch', descriptor, ext);
})({});


Please help!

Last edited by WaffleCODEZ (May 26, 2018 17:54:56)


      U^ェ^U  ~ I'm Blocky, waffle's signature assistant! I protect his signature!  :: #1a1a1a cap

Donate an Internet!
My Best Game! :)

















__________
| | | | | | | | <——- A Waffle (me)
| | | 0 | 0 | |
| | | |O | | |
|_|_|_|_|_|_|_|
savaka
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

WaffleCODEZ wrote:

Sorry if this is a bad question, this is my first extension.
I want to set my reporter (waffles) to an option with a dropdown menu (the options would be “taste good” and “don't taste good” (yes I notice this extension is silly))
How would I do that at all?
If you put your code in [code] tags (or more specifically [code=js] tags for JS syntax highlighting) it will display correctly
for example
alert('hey');
(if you quote you can see the tag formatting)
ideapad-320
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

what kind of js

This is my siggy.
Can't wait for FRC water game!
StrangerThingsFan365
Scratcher
500+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

E

Death Grips Is Online.
Now so am i.
hsamo
New to Scratch
12 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

This is quite helpful for newbies like me.
jaafreitas
Scratcher
12 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Sorry, but that's for ScratchX. Even though it has some similarities with Scratch 3 extensions, it doesn't work like that.
BATHILLS
Scratcher
40 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

when green flag clicked
when you join scratch(Follow BATHILLS)

when green flag clicked
ask [Are you following BATHILLS?] and wait
if <(answer) = [yes]> then
say [Great Job my friend!]


else
say [Go and follow him right away!]
end
EZZAR
Scratcher
4 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

hi!!!^_^
The_Little_Halfling
Scratcher
79 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Hi! I'm working with the music extension to make a noteblock! My piece has four different sprites all using the same instrument, and I've been trying to get them to play together. I've checked how many beats they hold or play on, and the code matches the music. However, when I hit the green flag, the sounds don't line up. Do you know why this is and how I can fix it?
AHypnoman
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

The_Little_Halfling wrote:

Hi! I'm working with the music extension to make a noteblock! My piece has four different sprites all using the same instrument, and I've been trying to get them to play together. I've checked how many beats they hold or play on, and the code matches the music. However, when I hit the green flag, the sounds don't line up. Do you know why this is and how I can fix it?
This is probably better as its own topic in the ‘Help With Scripts’ forum.

~ AHypnoman (Use Shift+Down Arrow to see the rest of my signature)







I am an evil kumquat, and your siggy looks tasty…
Hello there, I'm AHypnoman, If you write my name remember to capitalize the “H”. “When you don't create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create.” I write though as tho.
According to the Chrome Console, my viewbox attribute is “Garbage”. Very nice, Chrome.
#TrendyHashtag
Gib internneeet

Play Retorquebit!


ni-cool
New to Scratch
26 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Thanks
Xx-ErrorSans-xX
Scratcher
7 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

pokeloser
Scratcher
14 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Helpful
Ankit_Anmol
Scratcher
500+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

We need a Scratch lab extensions forum

@Ankit_Anmol
Quality game developer on scratch
Please support this suggestion: https://scratch.mit.edu/discuss/topic/481580/
Thanks for your time!

set [Ankit_Anmol v] to [Genius v]
Chiroyce
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Ankit_Anmol wrote:

We need a Scratch lab extensions forum

No, That already exists here







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
7A34BVB
Scratcher
1 post

COMMON QUESTIONS ANSWERED / HELP FAQ

i have a question

how can we make a simple scrolling background only
walksanator
Scratcher
19 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

How does one import a extension for offline projects/make a sort of auto import for local testing (raspberry pi)
-zx-games
Scratcher
4 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

But flash isn't supported anymore so we can't use scratch x
celleron56
Scratcher
89 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

walksanator wrote:

How does one import a extension for offline projects/make a sort of auto import for local testing (raspberry pi)
/me uses an raspberry pi too maibe try finding where the gpio extension is stored and importing the js file to that folder ?


Barthdry
Scratcher
500+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

I think this forum sticky become old and majorly related to 2.0, Can you add also 3.0 to this list of things.

Last edited by Barthdry (June 1, 2021 13:40:18)

Powered by DjangoBB