@DaveVoyles Multiple options here. 1) Don't create the new particle until the ball and bat make contact. 2) Initialize the particle with an
My damn particle class is giving me an issue. Anyone have any ideas? #XNA #XBLIG http://pastebin.com/e4fE1uNi
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles position that is off screen. Only when the ball/bat collide, does it get a new position, and will then show up. -
@blindgoatia Ahhh I didn't even think to initialize off screen. Duih.
End of conversation
New conversation -
-
-
@DaveVoyles The easiest solution would be to set the location to like -100, -100. -
@blindgoatia worked like a charm. Ok, alternatively, how can I initialize it without drawing it at all? - Show replies
New conversation -
-
-
@DaveVoyles don't create the particle until you need to and do a check for particle being null to not draw or update it. -
@MachXGames I didn't think it was such a simple solution, but apparently it is. Thank you - Show replies
New conversation -
-
-
@DaveVoyles How come you are generating / adding particles in 'Update' of 'ShortParticle'? Just generate them when the ball and bat collide. -
@rcashie I didn't even consider that I was doing that
End of conversation
New conversation -
-
-
@DigitalDNAGames@DaveVoyles there is also the 2D particle series I did as part of the starter 2D stuff on my blog, fairly detailed -
@SimonDarksideJ@digitaldnagames thank you gentlemen, I will look into both of those. I'm not crazy about this one either. - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.