Maths

deviliosdevilios Member Posts: 16
edited November -1 in Working with GS (Mac)
Hi !

I'm working on a math game and i'm blocked...
if i put

Display text

Text : random(1,9)+random(1,9) i have just the result. I want to see the calcul

for example : 5+9= ?

Can you help me ?

Bob from Switzerland

Comments

  • Rob2Rob2 Member Posts: 2,402
    random(1,9).."+"..random(1,9).."="

    make sure all this is typed in through the expression editor and completed with a click on the green tick :)
  • deviliosdevilios Member Posts: 16
    Thank you so much

    have a nice day !

    Bob
  • Rob2Rob2 Member Posts: 2,402
    no problem, if you wanted the space before the question mark you should use alt+spacebar.
  • calvin9403calvin9403 Member Posts: 3,186
    wow that is a problem I always forgot

    __________________________
    http://gshelper.com/
    http://www.gamesaladforum.com/
  • deviliosdevilios Member Posts: 16
    Hi

    I still have a problem because

    random(1,9).."+"..random(1,9).."=" doesn't work with attributes because the value of my attribute is 0 ...

    with random(1,9)+random(1,9) i see only the result but the attribute changes.

    Do you know why or someone can help me ?

    thx

    Bob
Sign In or Register to comment.