When I run the program and hit the exit button on the window, it doesn't respond and I have to have task manager close it. Anyone know what might fix that?
@metalx1000 im having the same problem, however when i leave out everything after the screen line. i.e. set_mode(size) and run it, the python game window opens and then becomes non responsive.. there are no variances between the code your using and the one i am, any help would be greatly appreciated.
@Quinny977: Well, your script runs perfectly fine for my. But, I think one of these 3 things might be your problem:
1) I did the last 'if' statement all on one line and really it should be on 2. see pastebin /i9edjF6S (it works for me, but your system might be different. I don't know why I did it all on one line in the video.)
2) you're running windows, so it could be something wrong with the version of pygame you are using for windows or it might be pickier about the 'if' statement in reason #1
3) you might be using a different version of python or pygame that has some issues.
I'm betting that it is a combination. I think the problem is #1, but it works fine for me because I'm running a different OS or a different Python/Pygame version.
@azsrathud He's using ubuntu, that's a linux based system. but you can download windowblinds and find a ubuntu package to make windows look just like ubuntu.
@ThreeDudes1camera: Yeah, that's just the default terminal. I don't know what OS you are running or what distro. But, unless you're running Windows, that is what the default terminal on most OSes looks like. Just find the terminal application among your programs.
@metalx1000 Hm, I just realised that I only get the error if I open the script in IDLE. So if I go into IDLE and use click open in it and then run it I get this
Traceback (most recent call last) File CUsers---Desktoptest.py, line 10, in module if event.type == pygame.QUITsys.exit()
SystemExit
But when I open in on my deskop, with CMD or IDLE it works fine.
@metalx1000 Yes, for some reason it disappeared on YouTube :S Whenever I try to post the real error message it says there's an error when commenting :/ Enter "aFEhijE7" after / on pastebin dot com for the complete code.
@zlakieprograming: Python is a scripting language, there is no complier needed. Just an interpretor. Mac OS and Linux usually have python installed by default and pygame can be securely installed on a Linux machine with a few click in the package manager.
i have a question for you .. how would you get a small image off the image that you put on the screen and place that image in mem.
ldschott 1 month ago
@metalx1000, I'd like to point out that you forgot to mention apt-get install python-pygame
SoSlipknot 2 months ago in playlist PyGame
When I run the program and hit the exit button on the window, it doesn't respond and I have to have task manager close it. Anyone know what might fix that?
MrRyanholder 3 months ago
@MrRyanholder: post your code at pastebin and send me a link and I'll have a look at it.
metalx1000 3 months ago
@metalx1000 im having the same problem, however when i leave out everything after the screen line. i.e. set_mode(size) and run it, the python game window opens and then becomes non responsive.. there are no variances between the code your using and the one i am, any help would be greatly appreciated.
Quinny977 3 weeks ago
@Quinny977: If you could please post your code at some place like pastebin, so I can view it, I'll be glad to look over it and get back to you.
metalx1000 3 weeks ago
@metalx1000 Here we go Sir, im sure im doing something embarrassingly stupid but there we go.
/wVzyRBhx
Quinny977 3 weeks ago
@Quinny977: Well, your script runs perfectly fine for my. But, I think one of these 3 things might be your problem:
1) I did the last 'if' statement all on one line and really it should be on 2. see pastebin /i9edjF6S (it works for me, but your system might be different. I don't know why I did it all on one line in the video.)
metalx1000 3 weeks ago
@Quinny977:
2) you're running windows, so it could be something wrong with the version of pygame you are using for windows or it might be pickier about the 'if' statement in reason #1
3) you might be using a different version of python or pygame that has some issues.
I'm betting that it is a combination. I think the problem is #1, but it works fine for me because I'm running a different OS or a different Python/Pygame version.
metalx1000 3 weeks ago
Finally! Something better than Buckys Tutorials
HowToEos 5 months ago 2
also, it looks like your using linux mint like i am...so I won't run into any problems 8D
DanielCoryMusic 5 months ago
THANKYOU ive been looking for someone who gives decent pygame tutorials...i just found it!! subscribing to your channel, and keep up the good work!
DanielCoryMusic 5 months ago
@42f87d89
I think I was talking about his vim colorscheme. Sorry for not being specific enough.
I've found one I really enojy: zenburn.
vim org/scripts/script php?script_id=415
@metalx1000
Looks like Mint is for gui only. Is this not the right colorscheme: vim org/scripts/script php?script_id=1660
(removed periods)
Thanks for the responses. DFTBA
azsrathud 6 months ago
Comment removed
azsrathud 6 months ago
UBUNTU FTW!
42f87d89 6 months ago
Brother you are my Real Rock Star :)
seekerphn 8 months ago
@seekerphn
:)
metalx1000 8 months ago
Thank you SO much, very helpful tutorial! This + TheNewBoston's tutorials = epic learning experience :P
Alpeche21 8 months ago 2
@Alpeche21: TheNewBoston is awesome!
metalx1000 8 months ago 5
hi brother..i love u ,your tutorials and vim...i feel like god when i use vim
littledoctor1000 9 months ago
@littledoctor1000 :)
metalx1000 9 months ago
What color scheme are you using? I'd like to have it.
azsrathud 1 year ago
@azsrathud: In VIM? What ever the default is on my distro, which I believe was Mint at the time.
metalx1000 1 year ago
@azsrathud He's using ubuntu, that's a linux based system. but you can download windowblinds and find a ubuntu package to make windows look just like ubuntu.
42f87d89 6 months ago
dude i hope this tutorial isnt like the new bostons, he never continued
2AWESOMETV 1 year ago 13
what version are you using?
randOmazing 1 year ago
@randOmazing: I made these videos months ago, so I don't remember what version it was. i probably should have said that in the video. Sorry.
metalx1000 1 year ago
ok what is that screen like u got when u first start the vedio cuz i really want one like that could u tell me if i have to make one or what
ThreeDudes1camera 1 year ago
@ThreeDudes1camera: I'm not really sure what you are asking me. Do you mean the Terminal Window?
metalx1000 1 year ago
@metalx1000 like when it first starts it says ur name and all that i want that yeah
ThreeDudes1camera 1 year ago
@ThreeDudes1camera: Yeah, that's just the default terminal. I don't know what OS you are running or what distro. But, unless you're running Windows, that is what the default terminal on most OSes looks like. Just find the terminal application among your programs.
metalx1000 1 year ago
Every time I try to kill this windows in either IDLE or PyScripter the program crashes :S
Jonte135 1 year ago
@Jonte135: Do you get an error?
metalx1000 1 year ago
@metalx1000 Hm, I just realised that I only get the error if I open the script in IDLE. So if I go into IDLE and use click open in it and then run it I get this
Traceback (most recent call last) File CUsers---Desktoptest.py, line 10, in module if event.type == pygame.QUITsys.exit()
SystemExit
But when I open in on my deskop, with CMD or IDLE it works fine.
Jonte135 1 year ago
@Jonte135: that's weird that it works in one and not the other.
do you have the ": " after QUIT
if event.type == pygame.QUIT: sys.exit()
metalx1000 1 year ago
@metalx1000 Yes, for some reason it disappeared on YouTube :S Whenever I try to post the real error message it says there's an error when commenting :/ Enter "aFEhijE7" after / on pastebin dot com for the complete code.
Jonte135 1 year ago
I am getting below error if i am trying to execute comand till displaying the screen, am i missing some thing ?
Traceback (most recent call last): File "./mypygame.py", line 3, in <module> import sys, pygame
ImportError: No module named pygame
patravi81 1 year ago
@patravi81: Did you install the pygame module?
I most cases:
sudo aptitude install python-pygame
metalx1000 1 year ago
Cool! You need to make like 1,000 tutorials though. This way you will be able to live up to your name.
MrJacobkip 1 year ago
@MrJacobkip: There have been times when I go by Metalx2000. But that's only when I've locked myself out of an account and had to create a new one :)
metalx1000 1 year ago
voice is too low :D
didagoal 1 year ago
u da man
rashalaska 1 year ago
@rashalaska: Thanks :)
metalx1000 1 year ago
what compiler do you use
zlakieprograming 1 year ago
@zlakieprograming: Python is a scripting language, there is no complier needed. Just an interpretor. Mac OS and Linux usually have python installed by default and pygame can be securely installed on a Linux machine with a few click in the package manager.
metalx1000 1 year ago
I guess that you could use /usr/env/python, but probably I'm wrong... thanks for the tutorial
nanotube09 2 years ago
#!/usr/env/python doesn't work for me.
But, #!/usr/bin/env python
does work, and I think it is more correct then what I am doing.
I bet it will work on more systems then my way.
But, I have just always done it #!/usr/bin/python and I haven't had any problems.
metalx1000 2 years ago
thanks alot
jayjaygibbs 2 years ago
keep up the good work! I want to see more tutorials like this.
PS: Where can I find a tutorial about Python?
adrianmihai21 2 years ago
There are plenty of good written tutorials on Python out there.
I hope to start doing a bunch of Videos on it some time soon.
metalx1000 2 years ago
There is MIT course called "MIT 6.00 Introduction to Computer Science and Programming" at MIT opencourseware channel here in YouTube..
You'll learn more then just python!
aisbaa 2 years ago
Awesome , more please :P
borttrollad 2 years ago
Soon, soon :)
metalx1000 2 years ago
Hope to see more python tutorials from you, Kris. You're really good at explaining things to people who don't have a clue... like me :D
librano 2 years ago
I have plenty of things I've learned in the last week or 2 on PyGame and I will be doing regular video on it (It will help me learn too)
I hope to do tutorials on basic python stuff too in the near future.
Oh, and tutorial part 2 will be up this evening, so keep watching :)
metalx1000 2 years ago
kewl!
librano 2 years ago