Hi everybody.
I have a group of array. Each one has index with the "difficulty configuration" for each level of my game.
Example :
LEVEL 01 |
|
|
|
index 0 |
difficulty 1 |
|
index 1 |
difficulty 2 |
|
index 2 |
difficulty 2 |
LEVEL 02 |
|
|
|
index 0 |
difficulty 2 |
|
index 1 |
difficulty 2 |
|
index 2 |
difficulty 3 |
I want to access each array with a variable. Because I need to setup difficulty when my player is upgrading. So I want to use my variable, "playerGrade".
At the start of the game, this variable is set to 0.
When the player makes an upgrade this variable set 0+1.
Currently I don't know how to access an array by a variable. Please help me ^^