Pages: 1
Hi can anyone help me with writing the script so that when i click the sprite it will pick a name of a child from my class at random. I have seen it done before where the cat says maybe i pick john or shane or mary. No i pick Jessica. Thank You
Offline
Just put all the names of the kids in your class into a list and pick randomly from that list:
You can have as many or as few entries in the list as you want, just replace the "Name" entries with the names of kids in your class, and add or remove as many of those blocks as you need.
Last edited by Kileymeister_test (2013-01-08 15:27:30)
Offline
Thank You for your help.
Offline
Kileymeister_test wrote:
Just put all the names of the kids in your class into a list and pick randomly from that list:
http://i45.tinypic.com/2d7zx1.gif
You can have as many or as few entries in the list as you want, just replace the "Name" entries with the names of kids in your class, and add or remove as many of those blocks as you need.
alternately, you can just use
item (any v) of [kids in the class v]
Offline
zammer990 wrote:
Kileymeister_test wrote:
Just put all the names of the kids in your class into a list and pick randomly from that list:
http://i45.tinypic.com/2d7zx1.gif
You can have as many or as few entries in the list as you want, just replace the "Name" entries with the names of kids in your class, and add or remove as many of those blocks as you need.alternately, you can just use
(item (any v) of [kids in the class v])
The "any" option isn't 100% random, but it would probably be OK here.
Offline
Pages: 1