May Sound Stupid, but How Do I Do Multiplication?
vorksholk
Member Posts: 7
Hello I'm fairly familiar with GameSalad, and have even published an App. However, I am having trouble with the simplest of things... how to multiply numbers. When I set a integer to 60*2 it will say NaN (Not a Number, I guess?). I've also tried (60*2). What am I doing wrong?
Comments
Hi @vorksholk
with equations, expressions, divisions, multiplications, additions and subtractions, you need to input the numbers via the Expression Editor. This is accessed by clicking the little "e" symbol in the behaviour.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Another test:
http://imgur.com/mR2zY <-- also gives NaN?
2*(270+game.TotalScore)
2((270+game.TotalScore))
It works fine when I don't try to multiply by 2 and just use 270+game.TotatScore.
Does anyone have any suggestions? (I'm on a Mac.)
Thanks!
Stick sin(90)* in before the calculation.
Try these-
http://www.mediafire.com/?wdp01qd2pep3p7c
http://www.mediafire.com/?8rua92rf82rdp8c
Hope these help.