This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-03 08:27:39

AmitDigga
New Scratcher
Registered: 2011-04-21
Posts: 18

new name format--

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

 

#2 2012-12-03 08:30:11

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: new name format--

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.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-12-03 08:36:03

AmitDigga
New Scratcher
Registered: 2011-04-21
Posts: 18

Re: new name format--

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

 

#4 2012-12-03 10:09:21

nama
Scratcher
Registered: 2010-06-06
Posts: 1000+

Re: new name format--

Assuming I understand what you're saying, you could use the "Join" blocks for that

Or am I missing something


You say goodbye to 1.4, I say hello to 2.0.

Offline

 

#5 2012-12-03 10:29:49

FistofDeath
New Scratcher
Registered: 2012-10-12
Posts: 29

Re: new name format--

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

 

#6 2012-12-03 11:02:56

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: new name format--

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.


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#7 2012-12-03 11:28:22

AmitDigga
New Scratcher
Registered: 2011-04-21
Posts: 18

Re: new name format--

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

 

#8 2012-12-03 15:09:29

nama
Scratcher
Registered: 2010-06-06
Posts: 1000+

Re: new name format--

FistofDeath wrote:

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)])

I was more referring to
(JOIN [My age is] [(age)])


You say goodbye to 1.4, I say hello to 2.0.

Offline

 

Board footer