New answers tagged

0 votes

Flying AI shakes when chasing and avoiding obstacles simultaneously

If I'm understanding correctly, the issue is that you're oscillating back and forth between two states... State 1 is when you're out of collision range and it moves normally. State 2 is when it's ...
Basic's user avatar
  • 1,166
1 vote

Sprite chasing a target using move_towards_ip does not move

pygame.sprite.Group.draw: Draws the contained Sprites to the Surface argument. This uses the Sprite.image attribute for the source surface, and Sprite.rect for the position. So we need to update ...
Mangata's user avatar
  • 2,451
0 votes

How to move in 3D space in first person mode?

Camera has it's own set of axes. You generally store any two of the three : camFront, camRight and ...
brightprogrammer's user avatar
2 votes

How to make redirected player movement respond to same key?

Not tested, but you could try looking at which keys the player is pressing when they're warping and setting the velocity x/y values to 0 when they're released depending on how much the movement is ...
thirteen's user avatar
  • 188

Top 50 recent answers are included