pranadevil Posted February 7, 2015 Share Posted February 7, 2015 hi buddies, i wonder if is possible to change the initial value in a tween in order to get an endless score : i tried ////create function tween2 goes from 0 to 500points=500;tween2 = game.add.tween(data).to( { score: points }, 2000); and check in the update function when the tween is onComplete and call a function to alter the initial data value and the points value. /// callback function when tween2 gets completed data.score = points /// alter the initial value of score to points points += 500; // increment points to 1000 not seems to work any idea? Link to comment Share on other sites More sharing options...
Recommended Posts