Calculator

Non-platform specific questions.

Calculator

Postby Zehper48 » Fri Dec 14, 2007 6:57 am

Hey,
i was wondering if anybody has made a calculator with game editor. if anybody has could they upload it? or if anybody has ideas how to make one could they tell me?

thanks
I like score
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Re: Calculator

Postby tufif » Fri Dec 14, 2007 3:50 pm

I thought about trying to make a calculator in ge, but I never got around to trying it. If anybody has made one, I'd be curious to see how they did it too!
tufif
 
Posts: 22
Joined: Sat Oct 13, 2007 3:00 am
Score: 2 Give a positive score

Re: Calculator

Postby asmodeus » Fri Dec 14, 2007 7:21 pm

I'll try it!
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Calculator

Postby Kalladdolf » Fri Dec 14, 2007 8:27 pm

there's one type of calculator very easy to make:
u just take three textboxes, write a number in there and have the buttons: +, -, x and :
if u press +,
Code: Select all
txb3.textNumber = txb1.textNumber + txb2.textNumber;

with -
Code: Select all
txb3.textNumber = txb1.textNumber - txb2.textNumber;

with x
Code: Select all
txb3.textNumber = txb1.textNumber * txb2.textNumber;

with :
Code: Select all
txb3.textNumber = txb1.textNumber / txb2.textNumber;

txb1,txb2,txb3 are the names of the textboxes.
+ is plus
- is minus
x is multiplying
: is dividing.

I think that should work
(at least in theory)
:D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Calculator

Postby Super Pieman » Sat Dec 15, 2007 12:28 am

Heres a calculator. It's not that great but its good for a reference.
Attachments
Calculator.zip
(153.55 KiB) Downloaded 141 times
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Calculator

Postby Bee-Ant » Sat Dec 15, 2007 4:48 am

Yeah...basic calculator is so easy...but, how about scientific calculator???Which use :
sin, cos, tan, inv, hyp, rand, etc...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Calculator

Postby Troodon » Sat Dec 15, 2007 10:16 pm

Or graphical calculator? :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Calculator

Postby Game A Gogo » Sun Dec 16, 2007 12:35 am

Graphical calulator, would be possible, USE CANVAS 83 but although, there could be some tricky places
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Calculator

Postby Bee-Ant » Sun Dec 16, 2007 7:18 am

Btw, could you all make other mathematic programs???like Matrix, Aljabar, Logarithm, etc...oh yah, do you know how to find x1 and x2 from x^2+5x+4=0 for example...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Calculator

Postby Kalladdolf » Sun Dec 16, 2007 7:16 pm

with some geometric figures?
should be actually possible, like using phytagoras' law or something :lol:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Calculator

Postby Kalladdolf » Sun Dec 16, 2007 7:18 pm

actually entering mathemathical laws into GE should be the EASIEST thing on earth...
I mean, we actually don't do anything else when programming!
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Calculator

Postby Game A Gogo » Mon Dec 17, 2007 12:54 am

although, GE does not have the sin-1, cos-1 and tan-1, like the inverse of sin, cos and tan.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Calculator

Postby Bee-Ant » Mon Dec 17, 2007 5:07 am

No, I think if GE could make Math program...we dont need our notes to study before exam...just open your PPC with Math program inside to pass all questions...Muahahahahah...
It would make so easy :lol: :lol: :lol: :lol:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Calculator

Postby pyrometal » Wed Dec 19, 2007 5:14 am

Game A Gogo wrote:although, GE does not have the sin-1, cos-1 and tan-1, like the inverse of sin, cos and tan.


I would beleive you are wrong about this one Game-a-Gogo. asin(), acos(), atan() would be the arcsin, arcosin, and arctan respectively in this case, which are the inverses. IMPORTANT NOTICE: this reders the angle values in radians and NOT degrees. To do this conversion, use the radtodeg() function. For those of you who do not know about radians, it is simply another method of representing an angle in the mathematics field. A radian basically uses the measure of the lenght of the arc of a sector(piece of a circle) of 1 unit radius to represent angles, it is superior to degrees in many applications.

That's all for now!

-- Pyrometal --
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: Calculator

Postby Fuzzy » Wed Dec 19, 2007 6:28 am

==Kalladdolf== wrote:
Code: Select all
txb3.textNumber = txb1.textNumber + txb2.textNumber;


Although it certainly works, for a serious application I would not suggest using textNumber for things like this. Use properly named global variables.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Next

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron