Unity 2022.3.3f1
AC 1.82.5
Hi, I'm making a 2D game, and the camera movement becomes jittery when I unlock the horizontal movement of the NavCam. My setup is as follows:
Setup: https://imgur.com/a/I3Jadj8
Video: https://drive.google.com/file/d/1PqQygsbUYrYjNs_yBJPreDUMlJx4LXoA/view?usp=share_link
Are there any settings in the AC Game Editor or elsewhere that I can adjust to fix this? Thanks so much!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
How is it that the camera is moving? Is an unseen Player character moving? If so, share their full Inspector.
My character is visible and created using Spine 2D. (The screen recording only captures part of the full game screen.) Here’s my Player prefab when I hit the Play button: https://imgur.com/a/R4SUh28
The jittering/glitching is less noticeable when the game screen is small, but it becomes very obvious when the screen size is larger—both in Unity and in the build. Thank you so much for your help!
Try tinkering with the options / presence of the Rigidbody, i.e. using Interpolation, checking Move with Rigibody?, and removing the Rigidbody completely.
Thank you so much for your response! I tried your suggestions, but unfortunately, I didn’t notice much of a difference. The screen still glitches, even when I replace my Player prefab with an animation engine set to Sprites Unity or Sprites Unity Complex.
Here’s what happens when the camera moves horizontally across the scene: https://imgur.com/a/hjRtXeg
(⬆️The entire screen is filled with glitches like the one in this image when the camera moves across the screen while following my Player character.
I had to take a photo of my screen using my phone because a screen recording doesn’t seem to capture the glitchiness.)
However, I did notice that the glitches significantly improve when I enable VSync and reduce the texture quality. My external monitor has a 60Hz refresh rate, and I’m using this script to cap the game’s frame rate:
Could the issue be related to high texture quality or frame rate settings? If so, is there a way to modify these settings dynamically?
If this is truly the cause, I’ll need to dig deeper to understand whether forcing VSync or lowering texture quality (from Max to High) is the right approach. But since all of this is new to me, I’m not sure where to start.
Summary:
Would you say this glitchiness is unrelated to Adventure Creator’s Player settings and is more of a Unity-related issue that can be fixed by adjusting frame rate, VSync, texture quality, etc.?
If so, is there a way to modify texture quality options? I found the tutorial below, but adjusting the screen resolution changed the size of the game window:
🔗 https://adventurecreator.org/tutorials/adding-screen-resolution-option
Thanks for your guidance and for taking the time to read this post!
While I don't have the full picture to go by, it is the case that the "glitch" effect is caused by VSync and is a general Unity behaviour rather than one specific to AC.
You can modify texture qualities within the Quality panel of your project's Player settings.
Got it. Thank you so much! I'll look into it!