Forum rules - please read before posting.

Animation events footsteps surfaces

I've been using the Footstep sounds component attached to my Player to play footsteps automatically. This works great, and I'm able to change footstep sounds on different surfaces by placing trigger zones in my scene.

Taking things a step further, I then tried using animation events to trigger Playfootsteps to match my animation. I was able to play the default footsteps sound, but how do I change the footstep sound based on surface? My triggers no longer seem to work. My game is 2D.

Comments

  • What's your AC version? The Footstep Sounds system was changed recently with new options to change sound using raycasting.

    The Manual's "Footstep sounds" chapter covers the available options. When using a 2D game, the same principle applies - just use PhysicsMaterial2D instead of PhysicsMaterial.

  • edited 9:39AM

    I'm on AC 1.84... did the following but doesn't seem to change anything...

    Placed a Polygon Collider 2D in scene, gave it a PhysicsMaterial2D material, e.g. Surface_Snow

    In Player prefab:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.