Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
event.key == K_r:
#2
(Jul-04-2021, 10:49 AM)Pedroski55 Wrote: I presume K_r means the right arrow key, but nothing happens when I press the right arrow key.
Check out the pygame documentation. It is a go to must when your programming in pygame. Everything starts with K_ as it is keyboard. K_r is "r". K_RIGHT is right arrow.


As a side note: I think it is better and more adaptable to organize things in classes as opposed to nested functions.
Pedroski55 likes this post
Recommended Tutorials:
Reply


Messages In This Thread
event.key == K_r: - by Pedroski55 - Jul-04-2021, 10:49 AM
RE: event.key == K_r: - by metulburr - Jul-04-2021, 11:13 AM
RE: event.key == K_r: - by Pedroski55 - Jul-04-2021, 09:35 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020