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… =/
i dont remember but i saw some things in Character class that allow you to set up reporting which material is being walked on without line traces being added to your custom blueprint. Also you can assign a Physical Material to.a Material and that might be usable since there is a phys mat output on the line trace hit result.
Sorry i wish I could remember how i did this in UdK
Thank you mightyenigma. But I cant use physical material method in paper2d because we can’t set different material for each tile piece, just for the entire layer =/, as paper2d dont have animation notify too =/