I have been trying to do the Battle of Red Cliff’s challenge, and I wanted to try to use the
choiceFunction() function, and it keeps returning values. The problem I have is that I can’t see what the returned values are because there are no
print() functions. Could you tell me how to use the returned value?
In the normal Game Devs, one method would be to define a variable as the spawned character…something like this:
var hero=game.spawnPlayerXY("samurai", 34, 8);
You should then be able to get the character to say your returned value:
I’m not participating in the challenge, so no promises this will work…good luck!
In the challenge I can’t say anything so I don’t think that will work, but thanks.
Well darn…was afraid of that!
If it still doesn’t work (and you don’t mind sharing your secrets ) you could post your code to me in a PM (click on my icon, then the ‘message’ button) and I could take a look at it, if you want.
Hi Deadpool198, I sent you a PM with my code could you help me out?