Home > other >  Class fighting snake snake camera follow players, how to realize the snake moves food not flicker, s
Class fighting snake snake camera follow players, how to realize the snake moves food not flicker, s

Time:09-22


Unity is the interface, I made of c + + and c # network communication multiplayer, imagine the ball ball big operations snake or serpent operations, a lot of food to eat, if I got too much food, graphics rendering flashing? This is gtx820m, I bring a game for mobile phones is not so easy?

CodePudding user response:

What the hell,,,

CodePudding user response:

When did you say snake mobile flash is real?

CodePudding user response:

yes, the camera follow the snake movement, like the snake up translation 0.5 cm per second, all the food of the screen to pan down 0.5 cm, in the process of translation food left the ghosting, people see is very afflictive, feel flash, if, as a very fire mobile game before the ball ball big battle, food movement is very smooth, it is good to let a person look very comfortable

CodePudding user response:

May be the display doesn't work

CodePudding user response:

I think it's moving too fast?

CodePudding user response:

The building Lord, can you share your snake project,,, thank you very much

CodePudding user response:

Try in LateUpdate per frame to Update the camera position, rather than an Update

CodePudding user response:

refer to 7th floor zhenmu response:
try in LateUpdate per frame to Update the camera position, rather than the Update

I tried it on useless, it seems not the cause of the camera shake, but it let me learned a lot, thank zhenmu, could move like JWXKK speak too fast
  • Related