ExplodeBehavior Explosion Location

Feb 8, 2011 at 6:30 AM

Any reason why when using an ExplodeBehavior the explosion is always rendered at 0.0 (x,y) vs. where the collision occured on WP7?  

Also, how would one customize the graphics used in the Explosion?

Feb 8, 2011 at 8:12 AM

I fixed the explosion location by changing line 127 of PhysicsExplodeBehavior.cs to be the following instead
double left = sprite.Position.X;                
double top = sprite.Position.Y;

Also, I see the "ucExplode.xaml" which is what gets rendered for the explosion.  I can simply make it have states or something that will know which graphic to use for my explosion so I can have different explosion graphics determined by what exactly exploded.  ;-)