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

#1 2012-11-19 23:57:48

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

2.0 Variable stuff with use in user accounts.

It would be good to have a 'Create a variable' block so I could have something like

Create variable (join (user id) (_name))
for accounts. Also, the ability to call variables using the 'Join' block, for this purpose. Also, a setting to add cloud variables to other projects so I could have a 'Flash ID', say.

Supporter_Lister wrote:

DVD4 - also fixed the ScratchBlocks.
mythbusteranimator

Last edited by MrFlash67 (2012-11-20 12:37:14)


Who would win, SOPA or PIPA?

Offline

 

#2 2012-11-20 00:05:09

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

MrFlash67 wrote:

It would be good to have a 'Create a variable' block so I could have something like

Create variable (join (user id) (_name))
for accounts. Also, the ability to call variables using the 'Join' block, for this purpose. Also, a setting to add cloud variables to other projects so I could have a 'Flash ID', say.

Fixed


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#3 2012-11-20 00:07:47

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

Re: 2.0 Variable stuff with use in user accounts.

dvd4 wrote:

MrFlash67 wrote:

It would be good to have a 'Create a variable' block so I could have something like

Create variable (join (user id) (_name))
for accounts. Also, the ability to call variables using the 'Join' block, for this purpose. Also, a setting to add cloud variables to other projects so I could have a 'Flash ID', say.

Fixed

Do you support?
Woo! 400 post!

Last edited by MrFlash67 (2012-11-20 00:09:08)


Who would win, SOPA or PIPA?

Offline

 

#4 2012-11-20 00:13:25

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

MrFlash67 wrote:

dvd4 wrote:

MrFlash67 wrote:

It would be good to have a 'Create a variable' block so I could have something like

Create variable (join (user id) (_name))
for accounts. Also, the ability to call variables using the 'Join' block, for this purpose. Also, a setting to add cloud variables to other projects so I could have a 'Flash ID', say.

Fixed

Do you support?
Woo! 400 post!

Defiantly


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#5 2012-11-20 00:15:49

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

Re: 2.0 Variable stuff with use in user accounts.

dvd4 wrote:

MrFlash67 wrote:

dvd4 wrote:


Fixed

Do you support?
Woo! 400 post!

Defiantly

Thanks!


Who would win, SOPA or PIPA?

Offline

 

#6 2012-11-20 00:18:40

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

MrFlash67 wrote:

dvd4 wrote:

MrFlash67 wrote:

Do you support?
Woo! 400 post!

Defiantly

Thanks!

your welcome


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#7 2012-11-20 00:44:44

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

I do not support the making variable with name, but I do support calling a variable with a reporter.

But instead of having a "create variable", I think there should be a "script variable", like there is in BYOB. Where you could manually rename the variables if you want.

Offline

 

#8 2012-11-20 01:06:16

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

Re: 2.0 Variable stuff with use in user accounts.

TorbyFork234 wrote:

I do not support the making variable with name, but I do support calling a variable with a reporter.

But instead of having a "create variable", I think there should be a "script variable", like there is in BYOB. Where you could manually rename the variables if you want.

But what if I want it in two projects with ten scripts with the variable each?


Who would win, SOPA or PIPA?

Offline

 

#9 2012-11-20 01:13:51

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

Use lists.

What we do need though, is arrays.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#10 2012-11-20 01:19:12

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

Re: 2.0 Variable stuff with use in user accounts.

jji7skyline wrote:

Use lists.

What we do need though, is arrays.

Yes, we need arrays, but I think that this is the current least-confusing plan.


Who would win, SOPA or PIPA?

Offline

 

#11 2012-11-20 02:12:05

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: 2.0 Variable stuff with use in user accounts.

Yes, but for this, we need to make the variable reporters similar to those in Panther.

Offline

 

#12 2012-11-20 12:08:27

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

+1 to arrays. Something like Lua's tables, which have a "pointer" that may be used to access an specific item, would be great for this purpose, too. It'd be pretty similar to Scratch's lists:

replace item [LOL NOT A NUMBER] of [table v] with [asdf]
(item [LOL NOT A NUMBER] of [table v]) //"asdf"


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#13 2012-11-20 12:14:29

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

Support * infinity


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#14 2012-11-20 12:29:11

Base10
Scratcher
Registered: 2012-10-19
Posts: 100+

Re: 2.0 Variable stuff with use in user accounts.

You could just add it with a list
[scratchblocks]
add to list [list example 1 v] [join [userid] [name]


http://www.blocks.scratchr.org/API.php?action=text&string=Base10_-_Creator_of_the_&bgr=24&bgg=27&bgb=237&textr=10&textg=100&textb=200http://www.blocks.scratchr.org/API.php?action=text&string=Flight_Simulator_Series&bgr=24&bgg=27&bgb=237&textr=10&textg=100&textb=200

Offline

 

#15 2012-11-20 12:36:27

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

Re: 2.0 Variable stuff with use in user accounts.

Base10 wrote:

You could just add it with a list
[scratchblocks]
add to list [list example 1 v] [join [userid] [name]

The way I would implement it would be running through the list and then doing something to put them in the project.


Who would win, SOPA or PIPA?

Offline

 

#16 2012-11-20 13:30:35

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: 2.0 Variable stuff with use in user accounts.

How about creating whole lists instead? You can do everything you can do with a variable with a list, but also more.


........................................................................................................................................................................................................................................

Offline

 

#17 2012-11-20 13:31:41

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

Re: 2.0 Variable stuff with use in user accounts.

zubblewu wrote:

How about creating whole lists instead? You can do everything you can do with a variable with a list, but also more.

How about variables and lists?


Who would win, SOPA or PIPA?

Offline

 

Board footer