Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

How to move players up and down an array

$
0
0
Imagine a ladder with players up and down it. The better go towards the top, and the worst are at the bottom. These are constantly switching up and down, so when an event is triggered, I can grab the lowest on the ladder move them to spectator (perma death). My problem is how can I write code in a way that will allow me to move them up and down. In Update() should I just check where they are on the leaderboards and reassign numbers, shifting everyone down. What is a good way to do this?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>