Need help with making a simple calculator
Hi guys
Im trying to make a very simple calculator in gamesalad but it's not as simple as I first thought. I can make a simple display text showing how to add up but can't do it using 3 actors. I have 3 actors setup up with the following rules
actor 1
self.number = 1
when actor is pressed change attribute self.number1 to game.number1
actor 2
self.number2
when actor is pressed change attribute self.number1 to game.number1
as far as I know this stores the self attributes in the game.attributes but how would could I add the 2 numbers together and display them on another actor.
Im trying to make a very simple calculator in gamesalad but it's not as simple as I first thought. I can make a simple display text showing how to add up but can't do it using 3 actors. I have 3 actors setup up with the following rules
actor 1
self.number = 1
when actor is pressed change attribute self.number1 to game.number1
actor 2
self.number2
when actor is pressed change attribute self.number1 to game.number1
as far as I know this stores the self attributes in the game.attributes but how would could I add the 2 numbers together and display them on another actor.
Comments
Hope it helps!!
BTW, why are you trying to make a calculator with GS?
thanks for help but it didn't work.
*(if they ever attempt to fix it, that is)
Chris