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

#1 2011-05-10 13:28:44

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Make a Text Reporter Block! :D

You know what's sometimes annoying? If you put text into the answer of variable block, you can stick it in a number only spot. Since there are square inserts for text, maybe make a square block that holds text? The following blocks would be this:

join [][]
letter () of []
answer
variable

The fictional:
letters () - () of []
get [date^]
rotation style
name of costume # ()
current sound name
last broadcast
key pressed
sprite name
ascii () as character
[reverse/shuffle/upper-lowercase][]

scimonster wrote:

I forgot something in the first post!
([]), which reports it if it is a number, and 0 if not.

Last edited by scimonster (2011-05-10 23:58:36)

Offline

 

#2 2011-05-10 18:18:01

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: Make a Text Reporter Block! :D

scimonster wrote:

variable

Ah, no, don't make variables more strongly typed than they are already.  You want to be able to put any value in any variable.  (Or at least I want that!  smile  )


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3 2011-05-10 23:58:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Make a Text Reporter Block! :D

I forgot something in the first post!
([]), which reports it if it is a number, and 0 if not.

Offline

 

#4 2011-07-10 16:32:20

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Make a Text Reporter Block! :D

does this work under operators?
('%s' #r #reportString)


http://i47.tinypic.com/rrqe13.gif

Offline

 

#5 2011-07-11 00:18:45

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Make a Text Reporter Block! :D

It would be an operators, but it wouldn't have the code you put.
('%s' #o #string:)

Offline

 

#6 2011-07-12 13:03:51

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Make a Text Reporter Block! :D

how 'bout this  ('report %s' #r #report: 'hello')
and under other ops:
report: t1
    ^ t1


http://i47.tinypic.com/rrqe13.gif

Offline

 

#7 2011-07-12 13:53:46

sci_test
Scratcher
Registered: 2011-06-22
Posts: 100+

Re: Make a Text Reporter Block! :D

The whole point is that it is not a Reporter Block. This is to separate between strings and numbers more easily.


[signature removed - please be respectful]
Last edited by scimonster (1970-01-01 00:00:00)

Offline

 

#8 2011-07-12 15:33:51

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Make a Text Reporter Block! :D

sci_test wrote:

The whole point is that it is not a Reporter Block. This is to separate between strings and numbers more easily.

oh so what type of block is it


http://i47.tinypic.com/rrqe13.gif

Offline

 

#9 2011-07-13 02:31:25

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Make a Text Reporter Block! :D

poemon1 wrote:

sci_test wrote:

The whole point is that it is not a Reporter Block. This is to separate between strings and numbers more easily.

oh so what type of block is it

A text block.

Offline

 

#10 2011-07-13 02:36:29

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Make a Text Reporter Block! :D

No not a text block. Just upgrade the variable! Scratch 2.0 could upgrade the variables, so you can type aslfjal (sorry spam) into a variable square number insert. So is that what you mean? (For that question ignore the Scratch 2.0 could upgrade the variables.)


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#11 2011-07-13 02:42:12

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Make a Text Reporter Block! :D

Thescratch3 wrote:

No not a text block. Just upgrade the variable! Scratch 2.0 could upgrade the variables, so you can type aslfjal (sorry spam) into a variable square number insert. So is that what you mean? (For that question ignore the Scratch 2.0 could upgrade the variables.)

You can type text into variables, but I want a separate kind of block that reports text than from the ones that report numbers.

Offline

 

#12 2011-07-13 12:57:34

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Make a Text Reporter Block! :D

Oh like a text block? Like a reporter? Oh, so you want a block that reports text?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#13 2011-07-13 13:00:47

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Make a Text Reporter Block! :D

Thescratch3 wrote:

Oh like a text block? Like a reporter? Oh, so you want a block that reports text?

Yes.

Offline

 

#14 2011-08-06 03:12:40

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Make a Text Reporter Block! :D

Text is meant to be first class. Also panther users would get it confused with colour blocks.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer