why just to give name
background 1 and background 2 as we can see both are very much similar name but scratch treat both with no connection
suppose i made many backgrounds say
level 1 level 2 level 3 ........ level 46
and i have a variable LEVEL
now what i want is that
i can set a script
set background to level (LEVEL)
OR
set background to level (LEVEL)*3
OR
set background to level (LEVEL)*8-1
obviously i m not talking only about backgrounds but wherever it can be used....
and my main point is to use naming in scratch more efficiently ..
Offline
Assuming "LEVEL" has its own sprite, and each level has its own costume in ascending order, use this:
switch to background (level)This has such an easy workaround so I don't support.
Offline
My main point was to make scratch enable so that it copy digits from a given line like
Ask "what is your age"
Answer "My age is 17" OR "He is idiot 26"
so scratch only treat the number 17 and 26 not the whole sentence.......
Offline
nama wrote:
Assuming I understand what you're saying, you could use the "Join" blocks for that
Or am I missing something
Pretty much
(JOIN [background] [(level)])
Offline
here is a similar feature which is already in scratch:
say you have "15 years old", with the 15 at the front.
Scratch only counts the "15" when you use it as a number.
Offline
it should not only limited to background level.. but to every costume and variable or any other thing may be they are making....and thanks for similar feature...lastly sorry if i m making trouble due to my lack of knowledge..
Offline
FistofDeath wrote:
nama wrote:
Assuming I understand what you're saying, you could use the "Join" blocks for that
Or am I missing somethingPretty much
(JOIN [background] [(level)])
I was more referring to
(JOIN [My age is] [(age)])
Offline