Re: Playing Footsteps?

2020-12-05 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Playing Footsteps? @2's solution works. If you're 60 fps, which is 1/1000, which is 0.016 seconds, then maybe a good time to play would be 0.25 seconds. 0.25/0.016 = aprox. 15.625 Frames between step sound play.You could do that, or maybe, depending on how fast the actual mov

Re: Playing Footsteps?

2020-12-05 Thread AudioGames . net Forum — Developers room : masonasons via Audiogames-reflector
Re: Playing Footsteps? Here's how I'd do it.Create a second variable. When your coordinates increment, increment the second variable with it. Make sure you factor in your speed when you increment the second variable. When the second variable reaches a specific value, play th

Playing Footsteps?

2020-12-05 Thread AudioGames . net Forum — Developers room : BoundTo via Audiogames-reflector
Playing Footsteps? In a small project, a player's position is updated every frame as they move. This means that their coordinates are updated by very small increments. There is a speed constant that is multiplied by this increment to determine how far they should move each fram