1
vote
1answer
157 views

What does a “video system not initialised” error in pygame mean?

I'm trying to play music when a key is pressed in pygame, then print a message. When I run this script: import pygame import time pressedkeys = pygame.key.get_pressed() pygame.init() ...
2
votes
4answers
2k views

RPG movement holding down button

I've been writing a simple top down mini RPG in python. My problem is that when I move the player I have to repeatedly tap the arrow key. Each time I tap the key the player moves 5 PX in the ...
5
votes
2answers
168 views

Pygame fails on KEYDOWN with Russian keyboard layout

When I press a keyboard button on a keyboard with a Russian layout, my application pygame game crashes with this message: UnicodeEncodeError: 'ascii' codec can't encode character '\u0444' in ...
1
vote
3answers
483 views

How can I make smoother upwards/downwards controls in pygame?

This is a loop I use to interpret key events in a python game. # Event Loop for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() if event.type == ...