Efficient way of drawing outlines around sprites
Posted
by
Greg
on Game Development
See other posts from Game Development
or by Greg
Published on 2010-09-14T16:47:14Z
Indexed on
2011/02/02
23:34 UTC
Read the original article
Hit count: 557
Hi,
I'm using XNA to program a game, and have been experimenting with various ways to achieve a 'selected' effect on my sprites. The trouble I am having is that each clickable that is drawn in the spritebatch is drawn using more than a single sprite (each object can be made up of up to 6 sprites).
I'd appreciate it if someone could advise me on how I could achieve adding an outline to my sprites of X pixels (so the outline width can be various numbers of whole pixels).
Thanks in advance,
- Greg.
© Game Development or respective owner