sprite animation change position webgl issue

hi all,
I’m pretty new to the unity 5 and specially to the webGL.

I’m developing an arcade game in unity5.1.1f1.

i have different animation for every move of the player (press down - player ducks. press up - player jumps).

i use the animator for this and i have animation controller with some booleans to state the player moves from animation to animation.

all of the changes are made by a C# scripts of the player by the ** Animator Class** and Set.Bool function.

in the development stage (when I’m running the game in unity - no build) it all runs smooth with no bugs, but when i move the game to a server or playing in build & run mode i run into animation problems.

instead of showing the animations it shows purple figure.

does anyone have an idea for the solution of this annoying problem?

thanks in advance.

I don’t Think that problem has anything to do with animating, it is more likely that you are using a shader which isn’t included when building. Go to Edit/Project/Graphics and add the custom shader to the list.

FIXED!!

so I’ve been playing around with my project and found that my sprite’s properties were not the same.

in some sprites the format was Truecolor, and the other was on compressed.

i don’t relay understand the fix but when i changed the sprites to the compressed format it fix the problem.