Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
Whack a Mole Game Help!
Old
pyrogirl8
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jan 2018
Default Whack a Mole Game Help! - 02-18-2018, 06:29 PM

I'm trying to make a Whack a Mole Game for Alice 3, and I have made a list of gophers (there were no moles) but my issue now is I can't get that list of gophers into something I can use. By that I mean in the drop down box where you can select objects, there's "this", "thisWackaMole", "thisGround" and "thisGopher" 0-11, but I don't have a "thisGophers" that I can use to do like "thisGophers" move UP. I need them all to move at random as well, which I need help with. I don't know how to get it to select a random Gopher.
Thanks!
Attached Files
File Type: a3p wacamole1.a3p (223.6 KB, 1 views)
   
Reply With Quote
Old
sometimes618
Member
 
Status: Offline
Posts: 18
Join Date: Jan 2016
Location: J Street
Default Yesterday, 08:47 AM

Quote:
Originally Posted by pyrogirl8 View Post
I'm trying to make a Whack a Mole Game for Alice 3, and I have made a list of gophers (there were no moles) but my issue now is I can't get that list of gophers into something I can use. By that I mean in the drop down box where you can select objects, there's "this", "thisWackaMole", "thisGround" and "thisGopher" 0-11, but I don't have a "thisGophers" that I can use to do like "thisGophers" move UP. I need them all to move at random as well, which I need help with. I don't know how to get it to select a random Gopher.
Thanks!
I don't really use Alice 3, so I'm not sure how much help I can be, but...
What I tried was that I used "each in _ together" and put every gopher in an array for it. I made it so that in the "each in" thing, the gopher would delay a random number of seconds and then move up and down.
Again, there's probably a better way to do this, but I gave it a shot.


"Remember: if you don't like what you see, you can change it!"
-The Infomaniac
   
Reply With Quote
Reply

Tags
alice 3, array, list, mole, wack

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.