- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
6 Posted Topics
Re: What are you using as an editor? Notepad ++? And are you testing the code on a website, or some other type of software? | |
Re: Try this: [CODE] import pygame import sys, os #Pause Variable pause = False #Main loop while 1: for event in pygame.event.get(): if event.type==KEYUP: if event.key==K_p: pause = False while pause == False: for event in pygame.event.get(): if event.type==KEYUP: if event.key==K_p: pause = True #Do your game here [/CODE] Hope it … | |
Re: Its another one of those 'Why didn't I code that???' programs.... ![]() | |
I have been working on pygame for awhile, and now I am working on making a fairly complex space ship game. I want the player to be able to go forward with 'w' and steer by rotating the ship with the 'a' and 'd'. I've tried pygame.transform.rotate, but it makes … | |
Re: If you want to do pause, do [CODE] import pygame import sys, os #Pause Variable pause = False #Main loop while 1: for event in pygame.event.get(): if event.type==KEYUP: if event.key==K_p: pause = False while pause == False: for event in pygame.event.get(): if event.type==KEYUP: if event.key==K_p: pause = True #Do your … |
The End.