Unity FirstPersonShooter animation issue
Posted: 14 Feb 2018, 20:42
Hello,
I'm having a little trouble and I was hoping someone on here could help me out (sorry if this is the wrong place to post this). I don't know much about game development, so I figured I'd download the SmartFoxServer Unity examples and mess around with them to learn some. So I messed around with the FirstPersonShooter example and added a few things to it. However, after adding several things (running, cooldown buttons, gui displays, etc.), I realized an issue had developed in the process. Whenever an enemy moves, the running animation doesn't play, and as a result it looks like the player is teleporting around.
I'm not sure what could be causing this. There are no errors, warnings or anything in the console. The server is successfully sending an enemy transform request to the client. The client tries to play the animation after getting the request. The enemy running animation seems to work (if I just add the animation to the game instead of doing it through the code, the animation plays fine). I didn't change anything in NetworkTransform.cs or AnimationSynchronizer.cs. So I'm not sure how to debug this problem or what to do next.
I've attached some gifs showing the problem and what it should look like (from the unmodified examples).
If any of you have any ideas or suggestions on how I can fix this, I would greatly appreciate them.
Thanks for your time.
I'm having a little trouble and I was hoping someone on here could help me out (sorry if this is the wrong place to post this). I don't know much about game development, so I figured I'd download the SmartFoxServer Unity examples and mess around with them to learn some. So I messed around with the FirstPersonShooter example and added a few things to it. However, after adding several things (running, cooldown buttons, gui displays, etc.), I realized an issue had developed in the process. Whenever an enemy moves, the running animation doesn't play, and as a result it looks like the player is teleporting around.
I'm not sure what could be causing this. There are no errors, warnings or anything in the console. The server is successfully sending an enemy transform request to the client. The client tries to play the animation after getting the request. The enemy running animation seems to work (if I just add the animation to the game instead of doing it through the code, the animation plays fine). I didn't change anything in NetworkTransform.cs or AnimationSynchronizer.cs. So I'm not sure how to debug this problem or what to do next.
I've attached some gifs showing the problem and what it should look like (from the unmodified examples).
If any of you have any ideas or suggestions on how I can fix this, I would greatly appreciate them.
Thanks for your time.