craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.43k stars 324 forks source link

Particle Documentation is Outdated and Code Example No Longer Works in Version 4.0.3 #954

Open Ultra4life opened 3 weeks ago

Ultra4life commented 3 weeks ago

Hello MonoGame.Extended team,

I have noticed that the documentation for the Particles component is outdated and no longer works in the latest version. Specifically, code that used to function correctly in MonoGame.Extended.Particles version 3.8.0 is now broken with MonoGame.Extended version 4.0.3.

Here is an example of the code that worked in version 3.8.0: var textureRegion = new TextureRegion2D(particleTexture); var particleEffect = new ParticleEffect(autoTrigger: false);

However, with version 4.0.3 of MonoGame.Extended, this code throws errors and there seems to be no clear documentation or resources available online to indicate how to adjust this for the latest version.

Could the documentation for this part be updated, or could an example be provided for those of us looking to migrate or start new projects using the particle system in the latest version?

Thank you for your hard work, and I hope this issue can be resolved soon.

Ultra4life commented 3 weeks ago

For thoses who are stuck like me : I had to Downgrade MonoGameExtended to version 3.8.0 and re-install MonoGame.Extended.Particules 3.8.0, using the Dotnet commands, to finally make it work

dotnet add package MonoGame.Extended --version 3.8.0 dotnet add package MonoGame.Extended.Particles --version 3.8.0

jeffgamedev commented 3 weeks ago

Big things are coming to the particle system soon 👍