Jean H

Jean H

  • NA
  • 7
  • 4.7k

Need help with text file import in C# xna

Feb 7 2011 6:14 AM
hi,

I have 5 sprites with same spritesheat. The position of each sprite on the frame must be determined by a text file i have to read into my program using StreamReader. The text file is as follows:

0,-160
160,-300
320,-250
480,-320
640,-200

This is each the x and y position where the image must start to move from. Can someone help me how to read the text into my program and use it as the x and y off each sprite? please

Answers (3)