Monday, September 29, 2014

Scroller speed bug found!

One of many bugs was that the scoll speed on fish appeard to be slower after an restart of the game, even though the velocity.x remained the same. It would seem that scroller.stop() that is a method inside of the Scrollable class, that extends all scrollable game objects does something to our fish that makes it move slower. The origin has been found, but the reason remain unsolved. However since we have states in our game, we can simple chose not to update the scroller classes when the frog dies. Therefore a stop method is perhaps not necessary even if it would be more correctly architectured with it.