|
Post by jrackley on Mar 6, 2017 4:23:44 GMT
Just wandering if anyone else has had this issue or knows any possibilities of what may be causing this?
I have a player set up with footstep textures and they work fine when I drag and drop the prefab character in the scene (all textures play correct sounds), however when I load from the main menu scene using the same prefab character only default footsteps play no matter what texture I am on.
Now here is the funny part, while trying to track down the cause, I noticed that if I initially have the vFootstepFromTexture disabled on the main menu, and then enable it on scene load it works fine(all sounds play), but the problem is that the character on the main menu floats above the surface of the ground(hunched position) for some reason?, but then is fine after scene loads. And yes the ground is set to default layer and the capsule collider is under 2.
Next case is that if I do have the vFootstepFromTexture script enabled during the main menu and all of the default sounds are playing as stated above after scene load, and if I then pause and disable the vFootstepFromTexture script, I can still hear the default footsteps sounds being played(do not know how this is possible as the script is not active?)
Hopefully I gave a clear explanation of the issues, and if anyone has any ideas what may be happening here, I would greatly appreciate the advice.
Thanks guys in advance
|
|
|
Post by Invector on Mar 6, 2017 16:51:20 GMT
I guess you didn't disable the sphere colliders on the feet, that's why your character is floating
|
|
|
Post by jrackley on Mar 6, 2017 16:57:58 GMT
I guess you didn't disable the sphere colliders on the feet, that's why your character is floating lol, yeah I forgot to do that, it is always the simple things that seem to get overlooked, will try it out when I get off of work. Do you have any idea though why the footsteps would revert to only playing defaults even though all of the custom textures are added and on the player after scene load? Even with the script disabled they still play the footsteps. thank you for all of the help
|
|
|
Post by Invector on Mar 6, 2017 17:01:34 GMT
it's probably due the starter order of things, maybe the footstep is loading up to fast and there is not enough time to load other things. you could try load up a scene with a fadeIn and make the character instantiate like 0.1f seconds later just to test
|
|
|
Post by jrackley on Mar 6, 2017 17:09:25 GMT
Will do thanks again for the help
|
|