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

#1 2013-03-02 04:33:29

Ajnin2008
Scratcher
Registered: 2008-07-05
Posts: 15

We should be abe to create variables inscript :D

when gf clicked
create variable <[non-taken-variable-name]>
  set <new variable> to <pick random <[1]> to <[10]>>
end
This would greatly expand what you could do in Scratch!
What do you think?

Last edited by Ajnin2008 (2013-03-02 04:35:27)

Offline

 

#2 2013-03-02 07:49:10

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: We should be abe to create variables inscript :D

Interesting suggestion...what sort of things could you do with this new proposed capability?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2013-03-02 08:06:01

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

Re: We should be abe to create variables inscript :D

You mean like SCRIPT VARIABLES is BYOB/Snap!, or like MAKE VARIABLE in Panther?


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

 

#4 2013-03-02 13:10:31

joshuaho
Scratcher
Registered: 2012-08-20
Posts: 100+

Re: We should be abe to create variables inscript :D

joefarebrother wrote:

You mean like SCRIPT VARIABLES is BYOB/Snap!, or like MAKE VARIABLE in Panther?

?


Did you know that you can go to space and see Mars by clicking here?

Offline

 

#5 2013-03-02 13:22:45

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: We should be abe to create variables inscript :D

I agree. It'd introduce Scratchers to the idea of scope.


Posts: 20000 - Show all posts

Offline

 

#6 2013-03-02 16:10:33

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: We should be abe to create variables inscript :D

I agree with instance/script variables, but what if a script called this one before it was created? However, this would be useful with cloud vars.


Who would win, SOPA or PIPA?

Offline

 

Board footer