(XNA!!!) Have Several Sprites of the Same Image, With Different Properties [modified]
-
Hi. I have a problem in XNA; it's that I want to have several sprites of the same thing, except place them in different places while keeping the 'physics' they all have. Can anyone give me a general idea of how I might do this. (Please try not to be too technical, unless it's needed!) If it helps anyone understand better, I'm making a border around the edge of the form with the boxes, but then I also want to draw 5 more inside various places. Please help, thanks! +I tried making the Texture2D into an Array and in the Load method, making a for loop to load a certain amount, but that doesn't work. That was my idea... Partly... Help is still appreciated. +Actually, I'vr got the hang of it. Stupid mistake... But any more info would still be liked. Thanks, kind of.
- I love D-flat!
modified on Tuesday, January 22, 2008 6:01:45 PM
-
Hi. I have a problem in XNA; it's that I want to have several sprites of the same thing, except place them in different places while keeping the 'physics' they all have. Can anyone give me a general idea of how I might do this. (Please try not to be too technical, unless it's needed!) If it helps anyone understand better, I'm making a border around the edge of the form with the boxes, but then I also want to draw 5 more inside various places. Please help, thanks! +I tried making the Texture2D into an Array and in the Load method, making a for loop to load a certain amount, but that doesn't work. That was my idea... Partly... Help is still appreciated. +Actually, I'vr got the hang of it. Stupid mistake... But any more info would still be liked. Thanks, kind of.
- I love D-flat!
modified on Tuesday, January 22, 2008 6:01:45 PM
Glad to hear you figured it out. In future it would be better if you posted your XNA related questions here. You will get much quicker and better answers - mainly because the guys/girls who wrote the XNA framework maintain, and actively contribute to the forum. Cheers, Mark.