Loading textures from a larger texture
up vote
0
down vote
favorite
I'm looking for a way to pretty much cookie cutter an image. I have an assignment for my video game design class to take a sprite sheet and load source rectangle data into an array. We haven't learned to do this and I've looked for hours and can't find anything explaining this particular issue. I'm extremely new to XNA and C# and I really need help pulling the textures. If someone could kind of explain the concept to me a little bit that would be wonderful. I'm not sure what "source rectangle data" is, so if when you explain how to pull the sprites off, you could kind of cover the very minimal basics of that, I would be very grateful. Thank you!
c# visual-studio visual-studio-2010 xna xna-4.0
add a comment |
up vote
0
down vote
favorite
I'm looking for a way to pretty much cookie cutter an image. I have an assignment for my video game design class to take a sprite sheet and load source rectangle data into an array. We haven't learned to do this and I've looked for hours and can't find anything explaining this particular issue. I'm extremely new to XNA and C# and I really need help pulling the textures. If someone could kind of explain the concept to me a little bit that would be wonderful. I'm not sure what "source rectangle data" is, so if when you explain how to pull the sprites off, you could kind of cover the very minimal basics of that, I would be very grateful. Thank you!
c# visual-studio visual-studio-2010 xna xna-4.0
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm looking for a way to pretty much cookie cutter an image. I have an assignment for my video game design class to take a sprite sheet and load source rectangle data into an array. We haven't learned to do this and I've looked for hours and can't find anything explaining this particular issue. I'm extremely new to XNA and C# and I really need help pulling the textures. If someone could kind of explain the concept to me a little bit that would be wonderful. I'm not sure what "source rectangle data" is, so if when you explain how to pull the sprites off, you could kind of cover the very minimal basics of that, I would be very grateful. Thank you!
c# visual-studio visual-studio-2010 xna xna-4.0
I'm looking for a way to pretty much cookie cutter an image. I have an assignment for my video game design class to take a sprite sheet and load source rectangle data into an array. We haven't learned to do this and I've looked for hours and can't find anything explaining this particular issue. I'm extremely new to XNA and C# and I really need help pulling the textures. If someone could kind of explain the concept to me a little bit that would be wonderful. I'm not sure what "source rectangle data" is, so if when you explain how to pull the sprites off, you could kind of cover the very minimal basics of that, I would be very grateful. Thank you!
c# visual-studio visual-studio-2010 xna xna-4.0
c# visual-studio visual-studio-2010 xna xna-4.0
asked Nov 8 at 2:26
DJ Kermit
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I have a tutorial here: https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-and-animations-with-monogame
It explains how to handle sprites form sprite sheets, including animations.
Full demo code included - which should give you a good starting point.
It's for MonoGame which is the open source re-implementation of XNA with the same API but cross platform.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I have a tutorial here: https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-and-animations-with-monogame
It explains how to handle sprites form sprite sheets, including animations.
Full demo code included - which should give you a good starting point.
It's for MonoGame which is the open source re-implementation of XNA with the same API but cross platform.
add a comment |
up vote
0
down vote
I have a tutorial here: https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-and-animations-with-monogame
It explains how to handle sprites form sprite sheets, including animations.
Full demo code included - which should give you a good starting point.
It's for MonoGame which is the open source re-implementation of XNA with the same API but cross platform.
add a comment |
up vote
0
down vote
up vote
0
down vote
I have a tutorial here: https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-and-animations-with-monogame
It explains how to handle sprites form sprite sheets, including animations.
Full demo code included - which should give you a good starting point.
It's for MonoGame which is the open source re-implementation of XNA with the same API but cross platform.
I have a tutorial here: https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-and-animations-with-monogame
It explains how to handle sprites form sprite sheets, including animations.
Full demo code included - which should give you a good starting point.
It's for MonoGame which is the open source re-implementation of XNA with the same API but cross platform.
answered Nov 8 at 13:11
Andreas Löw
708411
708411
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53200695%2floading-textures-from-a-larger-texture%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown