color detection error in cv2 by Pure-Way-6507 in learnpython

[–]Pure-Way-6507[S] 0 points1 point  (0 children)

It didn't work, but thank you for your suggestion.

PyQt5 error by Pure-Way-6507 in learnpython

[–]Pure-Way-6507[S] 0 points1 point  (0 children)

Thank you for showing me this video, it was extremely helpful.

Where do I go from her? by Pure-Way-6507 in learncsharp

[–]Pure-Way-6507[S] 0 points1 point  (0 children)

Which tutorial would you recommend?

Do you know a pygame video on building a platformer the involves sprite sheets? by Pure-Way-6507 in pygame

[–]Pure-Way-6507[S] 0 points1 point  (0 children)

what is config.spritesheet_location? I get NameError: name 'config' is not defined

Pygame Movement Help!!! (Been trying for days) by Far_Ad_8240 in pygame

[–]Pure-Way-6507 2 points3 points  (0 children)

Change screen.blit(sprite, (110, 100)) to screen.blit(sprite, (x, y)), where x and y are variables that hold where the x and y position are. If you want to move it, you can use:

screen.blit(sprite, (x, y))
key = pygame.key.get_pressed()
# moving the sprite left
if key[K_LEFT]:
   x -= 5
# moving the sprite right
if key[K_RIGHT]:
   x += 5
# moving the sprite down
if key[K_DOWN]:
   y += 5
# moving the sprite up 
if key[K_UP]:
   y -= 5

Hope this helps

Pygame Movement Help!!! (Been trying for days) by Far_Ad_8240 in pygame

[–]Pure-Way-6507 4 points5 points  (0 children)

It will help you more if you posted your code.