Hi, Guys
I am working on a small project for a leaderboard to show scores and positions of players in a game.
i.e. simple example with 5 players
Position Name Score
1 Tom 1000
2 Fred 900
3 Sam 800
4 John 700
5 Ann 600
I currently display the scores and simply redraw every few seconds as player scores changes. However, if players positions change I have to to redraw whole table.
I would like to introduce some type of animation so that say if Sam's score increases above Fred's then their position's change. (i.e Sam's moves up and Fred moves down) and we see the lines actually moving as they swap over.
i.e.
Position Name Score
1 Tom 1000
2 Sam 950 <---- Moved up
3 Fred 800 < ---- Moved down
4 John 700
5 Ann 600
I have seen Commercial leaderboards do this, and it looks great. It is also easier on the eyes than redraw the whole table or just the two lines in question.
I could animate myself by changing the y value for each associated text using timers or suchlike to move the text - But wonder if there is ananimation available, that I have missed, which would make life easier.
Thanks in advance, I would appreciate any input.
Dave
I am working on a small project for a leaderboard to show scores and positions of players in a game.
i.e. simple example with 5 players
Position Name Score
1 Tom 1000
2 Fred 900
3 Sam 800
4 John 700
5 Ann 600
I currently display the scores and simply redraw every few seconds as player scores changes. However, if players positions change I have to to redraw whole table.
I would like to introduce some type of animation so that say if Sam's score increases above Fred's then their position's change. (i.e Sam's moves up and Fred moves down) and we see the lines actually moving as they swap over.
i.e.
Position Name Score
1 Tom 1000
2 Sam 950 <---- Moved up
3 Fred 800 < ---- Moved down
4 John 700
5 Ann 600
I have seen Commercial leaderboards do this, and it looks great. It is also easier on the eyes than redraw the whole table or just the two lines in question.
I could animate myself by changing the y value for each associated text using timers or suchlike to move the text - But wonder if there is ananimation available, that I have missed, which would make life easier.
Thanks in advance, I would appreciate any input.
Dave