So, the idea is the score is based on percentage...
The layout width is 720 and for every 7.2 (since it is the 1% of 720) Layout width that is travelled by the player, the score gets added by 1%.
I made a really tall invisible and thin pillar sprite for every 7.2 layout width, so whenever the player hits that sprite, the score gets added by 1%, which means I add 100 sprite, so whenever the player hits that sprite, the score gets added.
It worked, but unfortunately, I noticed that when I did that, the game really lags as it is developed for mobile games & I am trying to keep the objects/sprites below 80 so the game won't cause any lag in player mobile device.
Anyone got a solution for this?