Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Working Calculator! --- Dameria
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default Working Calculator! --- Dameria - 12-10-2009, 08:08 PM

I know this is very recent to my last world I just created, tic-tac-toe 2.0, but I just had an idea recently while in school: "What if I could actually create a calculator with Alice in which things could be equated in like a real calculator?"

I began thinking about it, and I started to put the ideas together and it all started to make sense, and suddenly I couldn't wait to work on it. Well here I am about 4 hours later after starting on it, and I have gotten a considerable amount done already. So far, the number buttons work and you can click on each one, 0-9 and they will add up like in a real calculator (can only go up to 9,999,999).

And although that part was hard enough, before giving up for the day I also went ahead and added a few methods to make addition work accurately! Also the Clear button works normally, so instead of restarting the program to get a clean 0, just press the big C button.

Download my first version of it, Calculator 1.1, and tell me what you think. The only problem is that sometimes when you add things together, the text will go out of place (you can avoid this by putting in smaller numbers first, and then add a larger number). Again I repeat, do not try to get a number over 9,999,999 or bad things will happen...

Hope you like it, please feel free to comment or give advise for my next version where I will add more things to do. I like it when people leave comments on my posts. Thanks.

P.S. Its only 340 KB!! From now on I am going to try to make all of my worlds as basic as they need to be while still allowing all of the functionality that I want it to have, so that I can save as much file size as possible. This will teach me to be wary of the things I do, so I can keep my file size very low, therefore lag-free if I ever decide to make big projects and games.
Attached Files
File Type: a2w Calculator 1.1.a2w (339.5 KB, 78 views)
File Type: a2w Calculator 1.2 (Arty-fishL edit).a2w (1.10 MB, 34 views)
File Type: a2w Calculator 1.3 (Arty-fishL edit).a2w (2.42 MB, 102 views)

Last edited by Dameria; 02-03-2010 at 04:29 PM.
   
Reply With Quote
 

Tags
add, calculator, code, math

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.