- Home /
Change index values in list
Currently been hung up on developing a positioning system for my racing game. Right now the lap system works nearly flawlessly, and linked to it I have an integer that stores the position data (Number of laps * Total number of checkpoints + Last checkpoint index passed). This number allows us to find, generally, where a car is on the track and what lap they're on.
What I need some help with is trying to store these values into a list so I can sort them in descending order. I've been having trouble since these values are changing during runtime.
From there I can figure out how to access where the player is on that list and return the index value as a string to be displayed on the UI.
Is a list good for something like this? Thanks.
Comment