How to give a ball a following texture trailing effect

Posted by Evan Kohilas on Game Development See other posts from Game Development or by Evan Kohilas
Published on 2013-10-23T13:08:28Z Indexed on 2013/10/23 16:11 UTC
Read the original article Hit count: 293

Filed under:
|

How do I draw copies of the leading texture so that there is a line of the leading ball following behind it? (that don't collide)

So far I have tried to create the effect by placing another graphic 2 pixels off the graphic, but I don't see the second ball being drawn.

spriteBatch.Draw(ballTexture, ballPos, null, Color.White, 0.0f, new Vector2(Ballpos.X +2, ballPos.Y +2), ballSize, SpriteEffects.None, 0);

Thanks.

© Game Development or respective owner

Related posts about XNA

Related posts about c#