Hello, as the title suggests I have ran into a strange issue I can’t seem to diagnose.
I have followed along with Kaans course in for GoDot 2D, specifically Alien Attack. Everything was smooth until the particle video which required a good bit of personal searching, and tinkering to identify some differences, and I’ve now made my player character have a nice flame effect behind them, so I thought why not give it a shot with the rocket?
I did just this and created a particle effect for the rocket that looks good. However, seemingly randomly the particle effect after shooting the rocket blasts forward in front of the rocket rather than trailing behind it as I intended. I must note that it does so randomly because I can sometimes fire several shots with nothing out of the ordinary or unexpected, and then on the tenth shot (or whenever) it is almost as if it switches origin points, and then goes the opposite of the direction it is set to.
I should note I had to do a few things differently with the particle system, but my player character doesn’t have this happening just the rocket.
The things I changed (due to the GoDot update)
- I made gravity in the -x direction to get the particle to flow behind.
- I added speed, and shortened and did explosiveness as well as the lifetime in the Time setting
- I upped the FPS to make it look smoother.
- Other than that I just used material in canvas item and texture to change the appearance of the particle to look more like a flame/smoke. I was hoping someone could point out what the issue might be. I was wondering if it has something to do with the way its attached to the rocket?
As with the player character it is simply a GPUParticle2D attached as a child node of the rocket (which is an area2D).
Otherwise my Alien Attack game turned out great. I got to add/change a few things to know I’ve been building on my game development skills has been incredible. Thanks to everyone here for being so supportive and answering questions.