Hi All,
I am observing a strange behavior , I have my game.lua where I show a Vungle Ad for an additional life in the game. The flow is something like this
game
All lives Over
show Vungle ad
Vungle Listener adds a life after successful view
Game continues
additional life consumed and game over. Note : My variable no_of_grids = x
Reload this scene to play again
All lives over ( My Variable no_of_grids = y)
Show Vungle Ad
Vungle Listener adds a life after successful view
Game continues
Here is the problem. The game continues with no_of_grids = x !! And reload of a scene (with best practices of removescene, purge scene) is done during the sequence… dont know why the previous scene variables are remembered
this is the reload code :
storyboard.removeScene( “game” )
storyboard.gotoScene( “game”, “fade” , 500 )
Please let me know if this is a mistake from my side
regards
Joel