Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualZed McJack

Posted 03 November 2012 - 03:38 PM

Ok, I changed processing for paddle controling keys to polling and left quiting and pausing event based. And of course I removed set_repeat statment.

keys = pygame.key.get_pressed()

if keys[K_LEFT] or keys[K_RIGHT]:

	 if keys[K_LEFT]:

	 	 direction = -1

	 elif keys[K_RIGHT]:

	 	 direction = 1

else:

	 direction = 0


Everything is running as it should, altough I have another issue, but thats for another topic.

Thanks a lot

#2Zed McJack

Posted 03 November 2012 - 03:34 PM

Ok, I changed processing for paddle controling keys to polling and left quiting and pausing event based. And of course I removed set_repeat statment.

keys = pygame.key.get_pressed()

if keys[K_LEFT] or keys[K_RIGHT]:

if keys[K_LEFT]:

  direction = -1

elif keys[K_RIGHT]:

  direction = 1

else:

direction = 0


Everything is running as it should, altough I have another issue, but thats for another topic.

Thanks a lot

#1Zed McJack

Posted 03 November 2012 - 03:30 PM

Ok, I changed processing for paddle controling keys to polling and left quiting and pausing event based. And of course I removed set_repeat statment.
keys = pygame.key.get_pressed()
if keys[K_LEFT] or keys[K_RIGHT]:
if keys[K_LEFT]:
  direction = -1
elif keys[K_RIGHT]:
  direction = 1
else:
direction = 0
Everything is running as it should, altough I have another issue, but thats for another topic.

Thanks a lot

PARTNERS