How can i emit particles/material for mouse cursor?

SORRY FOR MY BAD ENGLISH

I’m a beginner here and i trying to emit fire from my mouse cursor like in little inferno game

when i emit fire it emits absolutely in different place and doesn’t follow the mouse cursor like i want to.

i think the problem is the mouse cursor location but i’m not sure and i don’t know how to fix it

i made this: BUT IT DOESN’T WORK

Instead of using Get Mouse Position, try using the Get Hit Result Under Cursor node. That will give you a hit result if there is something valid underneath the cursor. If you break the hit result (choose Break Hit Result, you may have to turn off context sensitive when you right click) you can get the location and spawn the particle effect there. I also checked for a valid hit before spawning the particle effect.

Hope that helps!

MY HERO!!! IT WORKS!!! :)) THANKS!!! THANKS!!! THANKS!!!