Python Forum
[PyGame] Game doesn't work after pause
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Game doesn't work after pause
#3
(Sep-19-2018, 04:27 PM)Owenix Wrote:
if event.type == pygame.QUIT:
                pygame.quit()
                quit

> ctrl-f + "quit"
> 3 results found

If you don't call a function, it doesn't do anything. Why waste your time typing things that don't do anything?
Python isn't ruby, simply referring to a function isn't enough to call it. The parenthesis are not optional.
Reply


Messages In This Thread
Game doesn't work after pause - by Owenix - Sep-19-2018, 04:27 PM
RE: Game doesn't work after pause - by metulburr - Sep-20-2018, 02:36 AM
RE: Game doesn't work after pause - by nilamo - Sep-20-2018, 08:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  can't get collision detection to work in platform game chairmanme0wme0w 10 4,013 Aug-19-2022, 03:51 PM
Last Post: deanhystad
  Movement after KEYUP, only after pause func esteel 2 3,341 Aug-22-2018, 03:03 PM
Last Post: Windspar
  Python Pygame help pause event Trajme 0 3,429 Dec-06-2017, 09:14 PM
Last Post: Trajme

Forum Jump:

User Panel Messages

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