[TABLE]
0
Hello again my friends,
I have a paper2d project that I'm trying to reproduce different foot steps sound based what tile type the player are walking. So, I named a User data name for each tile, grass for the tile that will reproduce steps on grass, concrete on concrete, and so on...
Then every 0.5 seconds I create a LineTrace by Channel if the player it's walking and this line collides with the tile floor.
The problem is: How can I retrieve the User Data Name from this tile collided by the Trace?
Can someone help me? Or maybe give me a better way to make different foot steps sounds in Paper2d?
PS: The GET TILE Function give me the right Data Name from the tile, but I can't retrieve it from the raycast... =/
IMAGE OF MY BLUEPRINT: https://i.imgur.com/WJufQyc.png