Jump to content
  • Advertisement
Sign in to follow this  
sarim

Particle System with SFML 2.0

This topic is 2116 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been trying to find a tutorial on how to create a simple particle system with SFML 2.0 for a while now but with no luck. Could some one please point me to the right website/tutorial/etc where I can learn from? Or better yet, just teach me through a reply on how I would go about doing this? I tried to make a sample program by trying to incorporate bits and pieces of tutorials from around the web but that only resulted in me making my computer freeze and crash :( Any help would be much appreciated

Share this post


Link to post
Share on other sites
Advertisement
You could have a small starting point for the particles, and have those coordinates in memory, after that you could generate a new sprite every 0.5 seconds or 1 second which rotates right or left randomly and maybe re-sizes itself on a random basis. Particles have random behavior so you will need to experiment with them, but if I'd want to do particles I'd create a class for them, write a couple of methods, apply some physical properties for them and implement them to a map editor. Another option is to use "Fake" particles which are sprites animated by hand for example a fire, a rocket blast, etc.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!