Discuss Scratch

Neikrodent
Scratcher
6 posts

Script Clones and Variable Adding

Problem:
Scratch can't hold infinite data and even if you want to hold 10 data for later you need to make 10 different Variables and probably 10 scripts
Edit: Sorry, but I forgot about Lists because I don't use them
But even without the problem I think that my suggestions would be effective in Scratch

Name of Solution Suggestion: Script Clones
Description:
A block with the shape of an “If” bock that says “Create clone of:”
It means that a Clone of the script that is in the block will be created
It will hold it's own data if you use a new “Only Script” variable type (Similar to “Only this Sprite” type)
Example: A script that will use its holded data when something happens
(On my Opinion this Solution Suggestion is better than the next one)

Name of Solution Suggestion: Variable Adding
Description:
A block with the shape of a “Say” block that says “Create Variable ( )”
The block will create a new Variable named ( ) where the “( ) join ( )” kind of blocks will be used
Example: You can sell something for a price and the price will be saved in a new variable until someone buys it
A “Delete Variable ( )” block could be added too

Link to suggestion: -
Topic creator: Neikrodent
Your username: Neikrodent
Have you posted suggestions here before?: No

Last edited by Neikrodent (May 24, 2019 17:45:28)

G157
Scratcher
100+ posts

Script Clones and Variable Adding

Neikrodent wrote:

Problem:
Scratch can't hold infinite data and even if you want to hold 10 data for later you need to make 10 different Variables and probably 10 scripts

Name of Solution Suggestion: Script Clones
Description:
A block with the shape of an “If” bock that says “Create clone of:”
It means that a Clone of the script that is in the block will be created
It will hold it's own data if you use a new “Only Script” variable type (Similar to “Only this Sprite” type)
Example: A script that will use its holded data when something happens
(On my Opinion this Solution Suggestion is better than the next one)

Name of Solution Suggestion: Variable Adding
Description:
A block with the shape of a “Say” block that says “Create Variable ( )”
The block will create a new Variable named ( ) where the “( ) join ( )” kind of blocks will be used
Example: You can sell something for a price and the price will be saved in a new variable until someone buys it
A “Delete Variable ( )” block could be added too

Link to suggestion: -
Topic creator: Neikrodent
Your username: Neikrodent
Have you posted suggestions here before?: No

Sprite clones idea can be worked around with broadcasts every clone and if you want to assign a clone with a different variable, you can set a clone ID.
The variable adding is unnecessary since we have lists. Add an item, delete an item, replace an item, same as a variable.

No support.

Neikrodent
Scratcher
6 posts

Script Clones and Variable Adding

G157 wrote:

Neikrodent wrote:

Problem:
Scratch can't hold infinite data and even if you want to hold 10 data for later you need to make 10 different Variables and probably 10 scripts

Name of Solution Suggestion: Script Clones
Description:
A block with the shape of an “If” bock that says “Create clone of:”
It means that a Clone of the script that is in the block will be created
It will hold it's own data if you use a new “Only Script” variable type (Similar to “Only this Sprite” type)
Example: A script that will use its holded data when something happens
(On my Opinion this Solution Suggestion is better than the next one)

Name of Solution Suggestion: Variable Adding
Description:
A block with the shape of a “Say” block that says “Create Variable ( )”
The block will create a new Variable named ( ) where the “( ) join ( )” kind of blocks will be used
Example: You can sell something for a price and the price will be saved in a new variable until someone buys it
A “Delete Variable ( )” block could be added too

Link to suggestion: -
Topic creator: Neikrodent
Your username: Neikrodent
Have you posted suggestions here before?: No

Sprite clones idea can be worked around with broadcasts every clone and if you want to assign a clone with a different variable, you can set a clone ID.
The variable adding is unnecessary since we have lists. Add an item, delete an item, replace an item, same as a variable.

No support.

Broadcasts: I don't know how you want to do that
Clone ID: I don't know what that is
Lists can actually hold infinite data and I just forgot about them because I don't use them but I think that my ideas aren't bad because of it
Thank you that you reminded me about the lists
ResExsention
New to Scratch
1000+ posts

Script Clones and Variable Adding

Neikrodent wrote:

G157 wrote:

Neikrodent wrote:

Problem:
Scratch can't hold infinite data and even if you want to hold 10 data for later you need to make 10 different Variables and probably 10 scripts

Name of Solution Suggestion: Script Clones
Description:
A block with the shape of an “If” bock that says “Create clone of:”
It means that a Clone of the script that is in the block will be created
It will hold it's own data if you use a new “Only Script” variable type (Similar to “Only this Sprite” type)
Example: A script that will use its holded data when something happens
(On my Opinion this Solution Suggestion is better than the next one)

Name of Solution Suggestion: Variable Adding
Description:
A block with the shape of a “Say” block that says “Create Variable ( )”
The block will create a new Variable named ( ) where the “( ) join ( )” kind of blocks will be used
Example: You can sell something for a price and the price will be saved in a new variable until someone buys it
A “Delete Variable ( )” block could be added too

Link to suggestion: -
Topic creator: Neikrodent
Your username: Neikrodent
Have you posted suggestions here before?: No

Sprite clones idea can be worked around with broadcasts every clone and if you want to assign a clone with a different variable, you can set a clone ID.
The variable adding is unnecessary since we have lists. Add an item, delete an item, replace an item, same as a variable.

No support.

Broadcasts: I don't know how you want to do that
Clone ID: I don't know what that is
Lists can actually hold infinite data and I just forgot about them because I don't use them but I think that my ideas aren't bad because of it
Thank you that you reminded me about the lists

You know. Just because you don't know something doesn't mean it needs to be simplified. If you just took as many shortcuts as you could, you wouldn't learn anything.

No support. There are easy workarounds.

If you need tons of variables, you can use lists. Create them, then use

add [] to [list v] // add a value to the end

to add items. Also:

delete ( v) of [list v] // remove last item
insert [] at (1 v) of [list v] // add a value wherever you want
replace item ( v) of [list v] with [thing] // replace an item in the list
(item ( v) of [list v] :: list) // reporter.
(length of [ v] :: list) // the length of a list
<[ v] contains [thing] ?> // if the list contains something

Broadcasts allow scripts to talk to each other, You can create messages, and scripts can send them to one another to do things.

broadcast [ v]

are usually paired with

when I receive [ v]

so that broadcasts can be sent and received,

Again, no support, there are very simple workarounds.

Hi, I'm ResExsention, a New Scratcher who refuses to press that button! I hope we get to know each other and become friends!

If you see "[DATA EXPUNGED]", you'll know it was deleted by me. It's a lot easier.

Powered by DjangoBB

Standard | Mobile