Need help with making a simple calculator

cmw333cmw333 Member Posts: 76
edited November -1 in Working with GS (Mac)
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.

Comments

  • svnsvn Member Posts: 445
    Create another attribute game.displaynumber. Create rule: when touch is pressed, change attribute self.displaynumber to (self.number1 + self.number2).
    Hope it helps!!
    BTW, why are you trying to make a calculator with GS?
  • cmw333cmw333 Member Posts: 76
    hi svn

    thanks for help but it didn't work.
  • ultimaultima Member, PRO Posts: 1,207
    you can't, been there done that.. GS can't count... (large numbers) so put it aside until they fix that bug*. went as far as figuring out how to work out almost every single function there is. only to discover GS can't count... it's a sad discovery.... and it's no simple task...

    *(if they ever attempt to fix it, that is)
  • cmw333cmw333 Member Posts: 76
    Thanks for letting me know ultimate before I ended u spending hours trying o figure out something which could be done.

    Chris
Sign In or Register to comment.