3
Reply

Need help with text file import in C# xna

Ask a question
Jean H

Jean H

13y
4.4k
1
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)