I have just started using Flox for my game & its awesome. Everything is working fine but I just want to ask about a certain specific scenario. My game has a single player section where there are around 20 levels (later on we are going to add more levels). I want to track following data about each level :
- tankUsedToPlay (uint)
- primaryWeaponUsed (uint)
- coins collected (uint)
- timeToComplete (uint)
- kills (uint)
- ifUserLeftTheGame (boolean)
- stars collected (uint)
I want this data for each and every level so that I can have a graph showing how many players have played this level & with what stats. (ex : 50 players played level 5, tankUsed : 1-20% of the time, 2-80% of the time, primaryWeaponUsed 1-70%, 2-30%, coinsCollected 20-100%.... u got the idea)
Now if I create a single GameOver event and create an object like this
var obj:Object = new Object(); obj.matchType = matchType; obj.levelNumber = String(levelNumber); obj.won = String(iWon); obj.userLeft = String(isUserQuit); obj.coins = coins; obj.chips = chips; obj.kills = kills; obj.deaths = deaths; obj.stars = String(stars); obj.currentGameTime = currentGameTime; obj.isMatchTimeOver = String(isMatchTimeOver); Flox.logEvent(SINGLE_PLAYER_GAME_OVER, obj);
This will create a single event for all the levels & I wont be able to distinguish which levels has what stats.
So another approach that I can think of is to create one event for each level and hence there will be 20 different events with the same object data.
Is this the right approach ?? Or am I missing something ?? Can logs be used here (I have not checked logs yet) ??