Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+4 votes

I have a button that I have connected to a particle effect for on_click(). The first particles just shoot off the screen, but then after that they work, any ideas on why that is?

asked in CSC380Jan2024 by (1 point)

3 Answers

+2 votes

It may not sound the best but may work, is there any way to force the game to do a particle effect right away so then the first time it loads in it runs the particle effect very quickly and so then hopefully the effects of it glitching won't happen when the person actually presses it the first time. I know this isn't the best solution but may work.

answered by (1 point)
+1 vote

It sounds like there might be a delay or initialization issue with your particle system in Godot. Double check the settings for emitting particles. If you are emitting particles immediately upon the button click, consider adding a delay or ensuring that the particle system is in the correct state before emitting particles.

answered by (117 points)
0 votes

I have also noticed that the particle system is a bit iffy with physics, I would check through your map to see if you have anything that the particles want to collide with

answered by (1 point)
...