Tag Info

New answers tagged


A simple solution for your case without implementing vectors by yourself and it's common operations (although I'd recommend to learn about such subject) would be to normalize X and Y when going diagonal: def update(self, dt, game): # take a copy of the current position of the player before movement for # use in movement collision response last ...

Top 50 recent answers are included