I'm making a "TRUE" top-down game, and I've been using this giant mess of a code that eats like 3-5% CPU usage that checks every tick what surface you're stepping on and what one your not to play different sounds for the surface than I speed up the audio for a running effect. But I feel like there has to be a simple solution for this I haven't seen. I would genuinely appreciate any help. Thank you, Tyler H.
Develop games in your browser. Powerful, performant & highly capable.
What do the events look like? You can create invisible sprites and check if player is overlapping.
So currently I'm using tiled backgrounds and when the player walks on them I use that as a test of what audio to play.