Alice Community  

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

Reply
 
Thread Tools Display Modes
Math Problems/Start Up screen
Old
T3k
Guest
 
Status:
Posts: n/a
Default Math Problems/Start Up screen - 04-08-2009, 03:45 PM

How can I call math problems from a random number generator?

Also, How can I have start up screen where you can click start or instructions?

Thanks in Advance!
   
Reply With Quote
Old
draikon3
Guest
 
Status:
Posts: n/a
Default 04-09-2009, 08:52 AM

you could make an instructions thing by using a billboard. as for making a random number math generator, it would be extremely hard to make...mostly because for as long as i've seen alice, i've never seen a plus minus multiply or divide function anywhere. you would have to program them all yourself (very time consuming)
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 04-09-2009, 11:54 AM

Quote:
Originally Posted by draikon3 View Post
i've never seen a plus minus multiply or divide function anywhere...
You have to use the drop down math option for setting values. Slightly cumbersome, but not too bad, and you can get fairly complex functions that way. I attached an example. It's very simple but I'm fairly sure you could set up a function with loops to do more complicated series expansions - and there are also the higher level "world" math functions available.
Attached Images
File Type: jpg Simple Math.jpg (17.0 KB, 56 views)
Attached Files
File Type: a2w Simple Math Functions.a2w (16.3 KB, 20 views)
   
Reply With Quote
Old
Scott300
Senior Member
 
Status: Offline
Posts: 80
Join Date: Feb 2009
Location: Ohio
Default 04-09-2009, 02:41 PM

Ya, but the random number generator likes to NULL out when integers is on to, to solve this make it so

if variable.randomnumber.world >= 0 and variable.randomnumber.world <= 1
{
set world.int = 1
}
else if variable.randomnumber.world >= 1 and variable.randomnumber.world <=
{
set world.int = 2
}
  Send a message via AIM to Scott300 Send a message via MSN to Scott300  
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 04-09-2009, 04:28 PM

Preceeding post certainly true - hope Alice 3.0 supports integers. I thought the question was how to make a math problem, however, which was what I was trying to address.
   
Reply With Quote
i would like to make a game following the next requirements ??
Old
alexbeltre
Guest
 
Status:
Posts: n/a
Default i would like to make a game following the next requirements ?? - 04-26-2009, 01:24 PM

Your animation must be interactive, and your game must make use of some of the events available in Alice.

Your implementation must include at least 1 user-defined function, which makes use of parameters. At least 1 of these functions must be called twice, with different arguments.

Your implementation must include user-defined method, which makes use of parameters. At least one of these methods must be used twice, with different arguments.

Your implementation must make use of loop statements, and if statement.

Finally, your implementation must make use of an array.
   
Reply With Quote
Reply

Tags
generator, math, number, problems, start

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.