Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Creating a multiplication game.
Old
choppa1890
Guest
 
Status:
Posts: n/a
Default Creating a multiplication game. - 04-19-2010, 12:56 PM

Hello, I'm pretty new to the community, but i really need some help with a project.

I'm doing a multiplication math game, two cowboys challenge each other to a showdown and the "good" cowboy wins because he gets the correct answer for a multiplication problem, or loses if he gets it wrong. Same with the ballerina, she jumps, spins and moves around whenever she gets a right answer, and stays in place or falls if she gets it wrong.

The thing i need help on is storing the number that can be accessed for said multiplication problems. It is basic time tables (the game is for 6yr olds+) so i need to store the numbers 1 through 10 and have alice access them randomly. 1 problem could be 3X2, the next problem could be 5X4, etc. I was wondering what is it that i have to do to achieve something like that? I already know i can ask input from the player, i just wanna know how to set up the numbers so they can be accessed and placed together in a multiplication problem.

Thank you.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-19-2010, 01:23 PM

Im kinda confused, can you post your project and mabye i can help?


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
choppa1890
Guest
 
Status:
Posts: n/a
Default 04-19-2010, 04:36 PM

i will in a few minutes. I will also try to explain what i wanted to do.
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 04-19-2010, 05:43 PM

You can use a number variable for that.


I'm a web developer/ designer now.
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 04-19-2010, 05:47 PM

Here is an example of it:
Attached Files
File Type: a2w Example.a2w (165.8 KB, 30 views)


I'm a web developer/ designer now.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-19-2010, 06:39 PM

Exaclty. You can just edit off of his or just copy what he did but remember what he did and you should be able to make a game with this


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames

Last edited by jediaction; 04-19-2010 at 07:07 PM.
   
Reply With Quote
Old
choppa1890
Guest
 
Status:
Posts: n/a
Default 04-19-2010, 06:57 PM

exactly like he did, basically says right or wrong and afterwards the cowboy shoots or falls down. Thank you so much for the information, i assume i go to properties and set the new number variable. Well that is a lot of help! Thank you so much.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-19-2010, 07:08 PM

your welcome


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 04-20-2010, 08:40 PM

He was saying that to me jedi. You didn't make the example.

You are very welcome choppa.


I'm a web developer/ designer now.

Last edited by dubastot; 04-20-2010 at 09:39 PM.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-20-2010, 09:02 PM

Ok sorry, i was confused.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.