Page 1 of 2
Calculator
Posted:
Fri Dec 14, 2007 6:57 am
by Zehper48
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
Re: Calculator
Posted:
Fri Dec 14, 2007 3:50 pm
by tufif
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!
Re: Calculator
Posted:
Fri Dec 14, 2007 7:21 pm
by asmodeus
I'll try it!
Re: Calculator
Posted:
Fri Dec 14, 2007 8:27 pm
by Kalladdolf
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)
Re: Calculator
Posted:
Sat Dec 15, 2007 12:28 am
by Super Pieman
Heres a calculator. It's not that great but its good for a reference.
Re: Calculator
Posted:
Sat Dec 15, 2007 4:48 am
by Bee-Ant
Yeah...basic calculator is so easy...but, how about scientific calculator???Which use :
sin, cos, tan, inv, hyp, rand, etc...
Re: Calculator
Posted:
Sat Dec 15, 2007 10:16 pm
by Troodon
Or graphical calculator?
Re: Calculator
Posted:
Sun Dec 16, 2007 12:35 am
by Game A Gogo
Graphical calulator, would be possible, USE CANVAS 83 but although, there could be some tricky places
Re: Calculator
Posted:
Sun Dec 16, 2007 7:18 am
by Bee-Ant
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...
Re: Calculator
Posted:
Sun Dec 16, 2007 7:16 pm
by Kalladdolf
with some geometric figures?
should be actually possible, like using phytagoras' law or something
Re: Calculator
Posted:
Sun Dec 16, 2007 7:18 pm
by Kalladdolf
actually entering mathemathical laws into GE should be the EASIEST thing on earth...
I mean, we actually don't do anything else when programming!
Re: Calculator
Posted:
Mon Dec 17, 2007 12:54 am
by Game A Gogo
although, GE does not have the sin-1, cos-1 and tan-1, like the inverse of sin, cos and tan.
Re: Calculator
Posted:
Mon Dec 17, 2007 5:07 am
by Bee-Ant
Re: Calculator
Posted:
Wed Dec 19, 2007 5:14 am
by pyrometal
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 --
Re: Calculator
Posted:
Wed Dec 19, 2007 6:28 am
by Fuzzy
==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.