I made a simple array containing a list of names and levels exp, etc.. I want to be able to cycle through each entry in my array using left and right arrow buttons.
For example clicking on the right button would populate some fields with the data stored in the array.
NAME: JOE
Level: 1
Current XP: 0
Clicking the right again goes to the next entry...
NAME: BOB
Level: 3
Current XP: 10
If I click the left button I can go back an entry:
NAME: JOE
Level: 1
Current XP: 0
I was displaying this data in a text file using myarray.(at) but im not clear on how to bring up the next entry in the array or the previous entry. Trying to avoid using global variables and im new to the array game. The idea is to flick through a roster like a deck of cards and display all the stats in a text.
Any thoughts?