Concatenating Booleans crashes the game
immor7al
Member Posts: 8
I'm not a programmer by study, but I was under the impression that concatenating would work with anything. But, if I concatenate a boolean, my game crashes. Concatenating integer-type variables is fine.
Can someone enlighten me?
Can someone enlighten me?
Comments
First off, why are you trying to concatenate two boolean variables?
Are you trying to do this in a rule?
If that's the sort of thing your doing, then that resulting in a bug has surely got to be a bug somewhere...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
"showboolean:"..game.boolean
I hit the green check mark. I put the actor on the stage. When I preview it, the game doesn't run.
However, if I type something in the "Display Text" behavior's expression editor like this:
"showinteger:"..game.integer
...the game runs fine.
Sorry for any confusion, like I said I'm not a programmer. And now I know concatenating has more meanings than one.
Try taking that part out and see if it still displays the value of the variable. It should.
But, if I wanted to concatenate an integer-type variable and a boolean-type variable in the same "Display Text" behavior, it won't work.
So, I've also tried it like this:
"showinteger:"..game.integer.."_game.boolean"'
...but, instead of displaying the variables value (which should be just true or false), it displays its ID. I think it displayed something like (var[game.boolean:id3519123]) ...something weird like that.
Hope I've understood correctly and this helps.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps