XNA Basics - Sprites Part 2
Uploader Comments (Whiplashx86)
All Comments (19)
-
thanks
-
What do you use to create your sprites?
-
great tutorial
-
thanks your tutorials are really simple and easy to understand (:
-
man your awesome!
-
good job
-
what is my sprite will have color as 0, 0, 0 (black) will that black be transparent?
-
Oh sorry forgot to tell you it got fixed, I just fixed the cases forgot it was case sensitive.
It was for the case sensitive thing right :P
-
You need to use the object spriteBatch. You were using the class there.
spriteBatch.Begin();
-
Error1An object reference is required for the non-static field, method, or property 'Microsoft.Xna.Framework.Graph
ics.SpriteBatch.Begin()' Quoted from the Line
SpriteBatch.Begin();
-
Yeah I have a complete side scroller queued up for tutorial 5
-
Hey could you do some tutorials on side scrolling games and how to build them?
Like marrio or the old Sonic games.
It would be MUCH appreciated!
Thanks I subbed.
-
The first part is uploaded but its still processing. If it is not finished by tomorrow I will upload it again. Sorry for the delay
-
Pretty good, kinda cut off on the ends but not bad.
What do you use to create your sprites?
altfclansing 1 year ago
@altfclansing Paper and pencil, scan as image, and finally trace with Photoshop.
Whiplashx86 1 year ago
I really like your tutorials and i have a question. You mentioned changing the origin of the sprite, and that you can change it for example, to the bottom left or the center. How do you do this?
fancypenguins 1 year ago
Assume the texture it named ship. In the origin part of the Draw call, use this:
new Vector2(ship.Width,ship.Height)
Whiplashx86 1 year ago
now if we want to create our own simple sprite like this how do we get the background transparent?
gammer8 2 years ago
I have mine set as a transparent PNG, but you can use TGA as well.
Whiplashx86 2 years ago