Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jamie

Pages: [1]
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
  • [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.

Pages: [1]
anything