1
Graphics / C++ writing out pictures from an array
« on: January 28, 2009, 10:11:36 am »
Okay, this is what I am trying to do:
I want to get the program to write out the sprite that belongs to the coordinate. The names, (Mot, Des, and so on) is sprites who worked perfectly to write out before i tried the line:
App.Draw(pl
Which just seems like a good way to do it, as far as I can see...
Because I want to be able to move around amongst the sprites.
What am I doing wrong? Or how could i change it to make it work as I want?
My compiler is Code Blocks.
I want to get the program to write out the sprite that belongs to the coordinate. The names, (Mot, Des, and so on) is sprites who worked perfectly to write out before i tried the line:
App.Draw(pl
- [y]);
Which just seems like a good way to do it, as far as I can see...
Because I want to be able to move around amongst the sprites.
What am I doing wrong? Or how could i change it to make it work as I want?
Code: [Select]
int x=2;
int y=2;
string pl[x][y];
pl[0][0]="Mot";
pl[1][0]="Des";
pl[0][1]="Lead";
pl[1][1]="Wis";
App.Draw(pl[x][y]);
My compiler is Code Blocks.