Relative Content

Tag Archive for pythonpygamepyopengl

How to make smooth player movement, using PyOpenGL as well as Pygame at the same time?

I have tried to use WASD movement and it worked quite well, but let’s say I was facing East in game, when I click/hold W, I move towards North, instead of where I’m facing it takes me to where the set orientation is (North). That’s just one problem, in my code, I had a jumping function, but it wouldn’t work because the game thinks that I am not standing on any solid surface. My last issue was that I added gravity, and it didn’t work very well, but it was still functional.