New answers tagged

1 vote

How to detect colored pixel of Sprite3D texture with perspective camera ray?

Reading the pixels would involve getting the texture from the viewport and querying that. Which is doable, if somewhat annoying. It is similar to: How would I mask the player node out of a canvas ...
Theraot's user avatar
  • 25.2k
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

Top 50 recent answers are included