Hello everyone, I'm Mr. Lister, and I'm making an extremely small-scale RPG game where you make a little character and go around killing monsters and collect items. That's all it is so far, and this is just a private pet project of mine, so I don't plan to releasing it publicly, because this game isn't much to look at. It's pretty much just a little bit of subtraction/addition, if-then statements, and some extra fluff because I barely have high school knowledge of VB.NET, so beware if I sound confused when you start throwing technical terms at me.
My previous inquiry on VBForums involved how I could go about making Save Files. Now I need to ask you guys to help me solve a bigger and much more complicated problem (to me, at least).
I have just recently learned about 2D Arrays, where you can do things like
..and use something like this to fill text boxes, right?
Private awesomeArray(20,20) as String
awesomeArray(1,1) = "Hello"
awesomeArray(2,1) = "World"
awesomeArray(20,20) = "I love turtles"
Well, in my little RPG game, I have a giant grid of 24 PictureBoxes by 24 PictureBoxes, each of those PictureBoxes being 24x24 pixels. Each of those PictureBoxes are named respectively of their position, like there is a PictureBox named x0y0, and another called x19y5, and another named x23y23. This grid is going to be like a 24x24 grid bird's eye view of a giant 999x999 tile map, and your character is always going to be in the center of the grid, on the PictureBox x11y11, so when you hit the Up key, your character stays in the center, but the entire map moves down to reveal more of the map. Also, before I forget to mention, things on the map are represented by BackColors, so your character is represented on x11y11 by x11y11.BackColor = Color.Maroon, or grass is x??y??.BackColor = LimeGreen, or a wolf is BackColor = Color.Gray, and a tree, which you can't walk through, is represented as x??y??.BackColor = Color.ForestGreen.
Now, can and how can I use a 2D Array to hold values like a wolf's level, health, and gold, and how can I randomize the elements of the Array on the Form's Load up action, so the map is different every time the game begins?
Please let me know if you have no clue what I'm talking about. I'll clarify and answer any questions you guys have!