Tire smokesis!?

hello you lovely gdevs, new to platform think is v cool.

newbie solo dev from Wales. im so new to coding its not even funny.

This is my 1st game idea, at the moment i am trying to make 1 and a half laps worth of particles come from each tire (so the drivers are hitting some dust clouds the next lap) but i cant - a, make the particles accurately come from the tire - b, get the smoke to stop. it kind of gives the effect im after at the moment, if you let it run for a few laps… https://youtu.be/U_ASW9Vs-a8 obviously way too may particles coming from the one emitter that i have set up here, but you should get the idea of the effect im trying to create.im sure the “ghost” particles im getting are just the same emitter buggin out. have done a good amount of searching but cant seem to find a solution. particle lifespan does not seem to work.

theres so much to do in this project that i want to achieve that i dont have the 1st clue about like car angles in the turns, or dynamically updating leader board, but have immensely enjoyed implementing the pathfinding and the somewhat outrageous achievement (for gdev) of google tiles track.

if anyone who actually knows what they are doing wants to help me build it give me a shout. cheers, merry Christmas and a happy new year.

just thinking… would you be better off creating the emitter one time then changing the position of each mud to the subaru tire positions. it wouldn’t explain why the mud is moving away from the car at each lap… did you definitely create the left rear point on the subaru?

if nothing else, i think you’d have better performance with 4 emitters per car than 4 per car per frame. that seems like it would get slow… fast.

yes made 4 points, this emitter is suppost to be on left rear, points in the right place on object. yes super slow, definitely too many particles, just trying to get to grips with how to limit the output in code, im sure theres 101 thing im doing wrong, but i feel with this kind of stuff you just got to get your hands dirty, if you have any child friendly explanations of what you know about im sure it would help me and anyone reading this, thanks dean.

I can’t see your whole code, but my point was that your code will create a new emitter every frame - and the old one will still be there as well. You can create an emitter once then have it track the wheel of the car. The particles are a whole different beast, but my main concern was that you were spamming thousands of emitters (if there isn’t a condition on that code)

dunno if this is what you were after, but this is what came to mind to get the emitters to track each wheel.

so you can put as many cars as you want on the screen, and as long as you give each one a unique number in their id variable, then each will have their own smoke linked to their tires. it seemed like this would fix the problem you were having where a fast car would leave behind a trail of emitters that would then generate smoke away from the car. but, i might not have understood the problem. Cheers!