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.
Unity FirstPersonShooter animation issue
Re: Unity FirstPersonShooter animation issue
Hi,
I would probably try to debug the part where positional updates arrive at the client and check what's happening in terms of animation. What is particularly weird is that the enemy disappears and reappears abruptly.
If the debugging doesn't help I would suggest to download the original copy of the example and compare the source with the changes you've made. The character interpolation is a bit complex and messing with its logic can cause weird behaviors.
Keep in mind that we also have a detailed tutorial on how it works:
http://www.smartfoxserver.com/downloads ... hrough.pdf
Cheers
I would probably try to debug the part where positional updates arrive at the client and check what's happening in terms of animation. What is particularly weird is that the enemy disappears and reappears abruptly.
If the debugging doesn't help I would suggest to download the original copy of the example and compare the source with the changes you've made. The character interpolation is a bit complex and messing with its logic can cause weird behaviors.
Keep in mind that we also have a detailed tutorial on how it works:
http://www.smartfoxserver.com/downloads ... hrough.pdf
Cheers
Who is online
Users browsing this forum: No registered users and 32 guests