Multiple Sprites using foreach Collison Detection in XNA (C#)
Posted
by
Bradley Kreuger
on Game Development
See other posts from Game Development
or by Bradley Kreuger
Published on 2011-02-15T19:33:56Z
Indexed on
2011/02/15
23:35 UTC
Read the original article
Hit count: 384
Back again from my last question. Now I was curious I use a foreach statement to use the same shot class. How would I go about doing collison detection. I used the tutorial here on how to shoot a fireball http://www.xnadevelopment.com/tutorials.shtml.
I tried to put in several places a foreach to look at all of them to see if they have reached the borders of my sprite hero but doesn't seem to do anything. If again some one might know of a good site that has tutorials to explain collision detection a little bit better that would be appriecated.
© Game Development or respective owner