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

#1 2012-11-04 19:35:50

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Save name in project?

I have seen projects that "save" the answers to questions you answer.  How is this done?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&link2=http://i46.tinypic.com/2elqwdy.png&link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#2 2012-11-04 19:40:20

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Save name in project?

StarscreamClone wrote:

I have seen projects that "save" the answers to questions you answer.  How is this done?

Lists.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-11-04 19:45:46

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Re: Save name in project?

Firedrake969 wrote:

StarscreamClone wrote:

I have seen projects that "save" the answers to questions you answer.  How is this done?

Lists.

Okay.  Thank you!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&link2=http://i46.tinypic.com/2elqwdy.png&link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#4 2012-11-04 19:46:06

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

Re: Save name in project?

They create variables, let's say "First name", and "Last name", and then they use the "ask and wait" block, and set the variable to the answer, like so:

when gf clicked
ask [what's your first name?] and wait
set [Firstname v] to <answer>
ask [what's your last name?] and wait
set [Lastname v] to <answer>
say <join<join<join [You're name is ](Firstname)>[, ]>(Lastname)> for (5) secs

Last edited by TorbyFork234 (2012-11-04 19:47:19)

Offline

 

#5 2012-11-04 19:46:47

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Re: Save name in project?

TorbyFork234 wrote:

They create variables, let's say "First name", and "Last name", and then they use the "ask and wait" block, and set the variable to the answer, like so:

when gf clicked
ask [what's your first name?] and wait
set [Firstname v] to <answer>
ask [what's your last name?] and wait
set [Lastname v] to <answer>
say <join<join<join [You're name is ](Firstname)>[, ]>(Lastname)> for (5) secs

Okay, thank you!


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&amp;link2=http://i46.tinypic.com/2elqwdy.png&amp;link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&amp;link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#6 2012-11-04 20:14:28

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Save name in project?

Closed by request of topic owner.


http://i.imgur.com/WBkM2QQ.png

Offline

 

Board footer