Talk:Simple text game, part 4
From Whirled
How to get flow working in 0.7
I changed the following code in tickHandler() from:
var flow : int = _control.grantFlowAward(score); _responseField.text = "Awarded: " + flow + " flow!";
to:
// var flow : int = _control.grantFlowAward(score);
// _responseField.text = "Awarded: " + flow + " flow!";
// ** ALTERED TO WORK WITH 0.7 **
var playerIds :Array = [];
var scores :Array = [];
for each (var playerId :int in _control.getOccupants()) {
playerIds.push(playerId);
scores.push(score);
}
_control.endGameWithScores(playerIds, scores, WhirledGameControl.TO_EACH_THEIR_OWN);
--Danporter@gmail.com 19:13, 11 September 2007 (PDT) (Dwendimal)

