display text problem pleas help
mintmomeg
Member, PRO Posts: 261
I need show game.number1 x game number 2 by use display text and I give game.number1=1 and game.number 2=0 then I use text display by game.number1.."x"..game.number2 and result should be 1x0 but the result from gamesalad is 0 on actor.. please help
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
game.number1.." x "..game.number2
Don't forget the double full stops (..) either side of the x; this tells GS to join the expressions together (concatanate) with the text. Also notice the quote marks to tell GS this is text, not an expression. And finally, to get the space before and after the x in the Expression Editor, press alt space.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
So what shows when you preview is: 1 x 0
The way to do this is described in my previous post.
If you want 1 x 1 (for the result to be 1), then simply change the attribute game.number2 to 1.
As for the spacebar, if you hold down the alt key (which might be called the option key on your keyboard) and press the spacebar while using the Expression Editor, you'll get the space you require. (if you do actually require it, i.e to show in Preview something like 1 x 0, or 3 x 7, etc; as I say, I'm confused now as to what you actually need!).
Or if you want to simply multiply the contents of number1 with number2, and show the result, then in the Display Text via the Expression editor, put
game.number1*game.number2
And the result will be shown in Preview as:
0
(if, as in your example, game.number1 is 1 and game.number2 is 0)
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps