Domanda

I posted this question already but no one is interested in responding and i have spent over 3 days trying to solve this problem. It is really annoying. I find this question everywhere but no answer. I have tried to move a sprite in libGDX over 1000 methods bu nothing seems to work. I have tries vSynch while adding in render loop to +speed*delta to position. I have tried only +speed. I have tried translate and everything else bu nothing seems to stop that flickering while the image is moving. What is the proper way to "move"(animate) things in libGDX. If anyone has encountered this problem, please answer this post. I am really trying to solve this problem as i can't progress without animations... This is the base for any game and i don't really understand how other games i have seen don't have flickering while moving sprites.

È stato utile?

Soluzione

I tested your code and i can't reproduce the stutter effect. It's really smooth for me. There exists a vsync bug but it should only appear in window mode.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top