Thread: XNA using C#
View Single Post
Old 03-26-2008, 03:54 PM   #60 (permalink)
Cloud9_
Registered User
 
Join Date: Jul 2002
Location: Los Angeles California
Posts: 228
+9 Internets
Send a message via ICQ to Cloud9_
I draw my sprites on rectangles
for example;

rSpriteRectangle = new Rectangle(0,0,40,40)

in the update method;

(current location is the vector2 you mentioned)
rSpriteRectangle.X = CurrentLocation.X
rSpriteRectangle.Y = CurrentLocation.Y

in the draw method

spriteBatch.Begin(SpriteBlendMode.AlphaBlend); <- i use this for transparency
spriteBatch.Draw(tSpriteTexture, rSpriteRectangle, Color.White);
spriteBatch.End();

should work
Cloud9_ is offline   Reply With Quote

 
Uberguilds Network