Discuss Scratch

The_king_of_nothing
Scratcher
65 posts

The HwS Questions Directory

he he

the_king_of_nothing
something_nice
Scratcher
1 post

The HwS Questions Directory

you need to use varibles


when green flag clicked
forever
ask [ggs] and wait
end
AldgatePupil16
Scratcher
7 posts

The HwS Questions Directory

Please join my Studio
Chudi Studios Unleashed

And to to
@aldgatepupil16
@redname2
@red4elephant
@extras104
Deplixed
Scratcher
45 posts

The HwS Questions Directory

The Official List of Rejected Suggestions wrote:

1.6 2D lists

2D lists, also known as 2D arrays, nested lists, or matrices, are a type of data structure that allows you to put an entire list as an element of another list; that is, it allows you to put lists inside of lists. These sorts of data structures are used widely in other programming languages and functions similarly to a table.

This block, and others, would allow you to create 2D lists to store information. However, this is too complicated for what is supposed to be an introductory programming language. There are workarounds possible by using an ordinary list and an indexing function. For those who are interested, it may be worth checking out Snap!. It is a block-based programming language designed for experienced programmers and has more advanced data structures than Scratch does.

add [] to sublist () of [list v] :: list 
View source

nihao

forkmanb
Scratcher
100+ posts

The HwS Questions Directory

TheonetruePICKLE wrote:

when green flag clicked
ask [Is this cool] and wait
this isn't the place to put blocks. please test scratchblocks here:
https://scratch.mit.edu/discuss/topic/741323/
MrInteractions
Scratcher
7 posts

The HwS Questions Directory

Sorry, this post appears to include unsuitable language and will not be posted.
Opanimator-
Scratcher
10 posts

The HwS Questions Directory

-InsanityGames-
Scratcher
500+ posts

The HwS Questions Directory

An inactive directory? Intriguing…


PROFILEㅤ・ㅤGITHUBㅤ・ㅤGIVE AN INTERNETㅤ・ㅤULTIMATE TOLORS QUOTER



yo check back another time
-InsanityGames-
Scratcher
500+ posts

The HwS Questions Directory

-InsanityGames- wrote:

(#209)
An inactive directory? Intriguing…
In all seriousness though, is it okay if I take over this directory? I already own this Bugs and Glitches directory which uses automation, and this directory hasn't been updated in over a year.


PROFILEㅤ・ㅤGITHUBㅤ・ㅤGIVE AN INTERNETㅤ・ㅤULTIMATE TOLORS QUOTER



yo check back another time
blah_blahYa
Scratcher
11 posts

The HwS Questions Directory

Can anyone help me do the following:

when green flag clicked
forever
if <(star and heart) = (clicked)> then
change [points] by((points) + (10))
end

Last edited by blah_blahYa (March 20, 2024 19:20:03)

blah_blahYa
Scratcher
11 posts

The HwS Questions Directory

when green flag clicked
set [inputExpression v] to (3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3)
initialize [outputQueue v] to []
initialize [operatorStack v] to []

repeat (length of (inputExpression))
set [currentToken v] to (letter (i) of (inputExpression))
if <(currentToken) = [a number]> then
add (currentToken) to (outputQueue)
else
if <(currentToken) = [an operator]> then
repeat until <<(operatorStack) = []> or <(currentToken) has greater precedence than (top of (operatorStack))>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a left parenthesis]> then
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a right parenthesis]> then
repeat until <<(operatorStack's top) = [a left parenthesis]>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
remove (operatorStack's top) // Remove the left parenthesis
end
end
end
end
end

repeat until <<(operatorStack) = []>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
define push(item v) onto(stack v)
add (item) to (stack)

define remove top from(stack v)
delete (1) of (stack)

define top of(stack v)
(item (1) of (stack))

define has greater precedence than(item1 v) (item2 v)
<((item1) has greater precedence than (item2))>

define a number
<(currentToken) = [0] or (currentToken) = [1] or (currentToken) = [2] or (currentToken) = [3] or (currentToken) = [4] or (currentToken) = [5] or (currentToken) = [6] or (currentToken) = [7] or (currentToken) = [8] or (currentToken) = [9]>

define an operator
<((currentToken) = ["+"] or (currentToken) = ["-"] or (currentToken) = ["*"] or (currentToken) = ["/"] or (currentToken) = ["^"])>

define a left parenthesis
<(currentToken) = ["("]>

define a right parenthesis
<(currentToken) = [")"]>

Last edited by blah_blahYa (March 21, 2024 21:28:52)

-InsanityGames-
Scratcher
500+ posts

The HwS Questions Directory

Deplixed wrote:

The Official List of Rejected Suggestions wrote:

1.6 2D lists

2D lists, also known as 2D arrays, nested lists, or matrices, are a type of data structure that allows you to put an entire list as an element of another list; that is, it allows you to put lists inside of lists. These sorts of data structures are used widely in other programming languages and functions similarly to a table.

This block, and others, would allow you to create 2D lists to store information. However, this is too complicated for what is supposed to be an introductory programming language. There are workarounds possible by using an ordinary list and an indexing function. For those who are interested, it may be worth checking out Snap!. It is a block-based programming language designed for experienced programmers and has more advanced data structures than Scratch does.

add [] to sublist () of [list v] :: list 
View source
Didn't expect to casually find someone using my project here lol

Last edited by -InsanityGames- (March 21, 2024 21:22:33)



PROFILEㅤ・ㅤGITHUBㅤ・ㅤGIVE AN INTERNETㅤ・ㅤULTIMATE TOLORS QUOTER



yo check back another time
DaBestCoconut
Scratcher
7 posts

The HwS Questions Directory

Please help me. I am trying to find a NON-LAGGY scrolling background for a big game I am making.
BigNate469
Scratcher
1000+ posts

The HwS Questions Directory

I've seen a couple of posts in this topic from people asking for help. That is not the point of this topic, please open your own instead. To do so, just hit “New Topic” at the top of the forum page, after exiting this topic. People aren't really looking here to help you, however they are looking in the rest of the Help with Scripts forum.

Highlight any part of this signature and press ctrl+shift+down arrow to see the rest of it
forever
if <person asks [what's a signature] :: sensing> then
Redirect to [https://en.scratch-wiki.info/wiki/Signature] :: motion
end
end
Please read the list of Officially Rejected Suggestions before posting a suggestion for Scratch! 100th post
This signature is designed to be as helpful as possible.
View all of the topics you've posted in:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=topics
View all of your posts:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=posts
Forum tips:
Don't post in topics where the latest post is over ~2 months old, unless you have something critical to add. Especially in topics that are several years old- it isn't helpful, and is known as necroposting.
Don't post unrelated things in topics, including questions of your own. Make a new topic for your questions.
You can use the
 [color=color name or hexadecimal value here] and [/color] 
tags to color text.
Lesser-known Scratch URLs:
https://scratch.mit.edu/projects/PROJECT ID HERE/remixtree (replace “PROJECT ID HERE” with project id number. Shows all the remixes of the project, and the remixes of those projects, and the remixes of those projects, and so on, as a chart. Link currently redirects to one of my projects)
View a larger list at: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
1000th post
Oleksyshyn29
Scratcher
13 posts

The HwS Questions Directory

[when green flag clicked]

A
Oleksyshyn29
Scratcher
13 posts

The HwS Questions Directory

move () steps[scratchblocks]
turn cw () degrees
[/scratchblocks][scratchblocks]
backdrop #
[/scratchblocks]

A
BluePixelLOLLL
Scratcher
100+ posts

The HwS Questions Directory

blah_blahYa wrote:

when green flag clicked
set [inputExpression v] to (3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3)
initialize [outputQueue v] to []
initialize [operatorStack v] to []

repeat (length of (inputExpression))
set [currentToken v] to (letter (i) of (inputExpression))
if <(currentToken) = [a number]> then
add (currentToken) to (outputQueue)
else
if <(currentToken) = [an operator]> then
repeat until <<(operatorStack) = []> or <(currentToken) has greater precedence than (top of (operatorStack))>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a left parenthesis]> then
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a right parenthesis]> then
repeat until <<(operatorStack's top) = [a left parenthesis]>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
remove (operatorStack's top) // Remove the left parenthesis
end
end
end
end
end

repeat until <<(operatorStack) = []>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
define push(item v) onto(stack v)
add (item) to (stack)

define remove top from(stack v)
delete (1) of (stack)

define top of(stack v)
(item (1) of (stack))

define has greater precedence than(item1 v) (item2 v)
<((item1) has greater precedence than (item2))>

define a number
<(currentToken) = [0] or (currentToken) = [1] or (currentToken) = [2] or (currentToken) = [3] or (currentToken) = [4] or (currentToken) = [5] or (currentToken) = [6] or (currentToken) = [7] or (currentToken) = [8] or (currentToken) = [9]>

define an operator
<((currentToken) = ["+"] or (currentToken) = ["-"] or (currentToken) = ["*"] or (currentToken) = ["/"] or (currentToken) = ["^"])>

define a left parenthesis
<(currentToken) = ["("]>

define a right parenthesis
<(currentToken) = [")"]>
when green flag clicked
set [inputExpression v] to (3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3)
initialize [outputQueue v] to []
initialize [operatorStack v] to []

repeat (length of (inputExpression))
set [currentToken v] to (letter (i) of (inputExpression))
if <(currentToken) = [a number]> then
add (currentToken) to (outputQueue)
else
if <(currentToken) = [an operator]> then
repeat until <<(operatorStack) = []> or <(currentToken) has greater precedence than (top of (operatorStack))>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a left parenthesis]> then
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a right parenthesis]> then
repeat until <<(operatorStack's top) = [a left parenthesis]>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
remove (operatorStack's top) // Remove the left parenthesis
end
end
end
end
end

repeat until <<(operatorStack) = []>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
define push(item v) onto(stack v)
add (item) to (stack)

define remove top from(stack v)
delete (1) of (stack)

define top of(stack v)
(item (1) of (stack))

define has greater precedence than(item1 v) (item2 v)
<((item1) has greater precedence than (item2))>

define a number
<(currentToken) = [0] or (currentToken) = [1] or (currentToken) = [2] or (currentToken) = [3] or (currentToken) = [4] or (currentToken) = [5] or (currentToken) = [6] or (currentToken) = [7] or (currentToken) = [8] or (currentToken) = [9]>

define an operator
<((currentToken) = ["+"] or (currentToken) = ["-"] or (currentToken) = ["*"] or (currentToken) = ["/"] or (currentToken) = ["^"])>

define a left parenthesis
<(currentToken) = ["("]>

define a right parenthesis
<(currentToken) = [")"]>
huh

Last edited by BluePixelLOLLL (April 24, 2024 04:24:17)


Reese's Peanut Butter Cup Fan Studio | The Forumers Hideout!

<<<Hey! The sussy evil mad emoji's are trying to break that wall!

4-11-2024 - Joined Scratch Highlight+Shift+Down to see the rest on my siggy!
when my project gets clicked :: #3495eb hat
You hopefully say [This is a good project!] for (2) secs :: looks
Then you heart and favorite it :: operators
And leave a comment saying something nice about it :: #fc00ec
~~~~~~~~~~~~~~~~~~~~~~~
define [Scratch] 100x (1000) 6^78*9 [Cat] celsius 
set sky color to [#47af6e] + [119] [th v] element of the periodic table:: #fc00ec
if <[something v] contains [something] + DjangoBB ?> then
Do activity [Dance v] :: #574027
end
Create [1,000,000,000,000,000,000,000th] project :: #134567
Custom Scratch Forum Emojis:


Kingsharpblade23
Scratcher
5 posts

The HwS Questions Directory

when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
MicrosoftFan2031
Scratcher
1 post

The HwS Questions Directory

S K E L E T O N


4w350m3g4m3r79
Scratcher
20 posts

The HwS Questions Directory

can i have help on a card system?
https://scratch.mit.edu/projects/1019059716/

king of page 12

Last edited by 4w350m3g4m3r79 (May 13, 2024 17:22:58)


when quoted,        ::events ::extention hat 
send quote (Send (text from quoted comment ::sensing) to [AI] ::motion) to (person who quoted ::sensing) ::control
stop [this script v]

Powered by DjangoBB