Added: 2 years ago
From: metalx1000
Views: 10,726
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (58)

Sign In or Sign Up now to post a comment!
  • 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.

  • @metalx1000, I'd like to point out that you forgot to mention apt-get install python-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: post your code at pastebin and send me a link and I'll have a look at it.

  • @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: 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 Here we go Sir, im sure im doing something embarrassingly stupid but there we go.

    /wVzyRBhx

  • @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.)

  • @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.

  • Finally! Something better than Buckys Tutorials

  • also, it looks like your using linux mint like i am...so I won't run into any problems 8D

  • 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!

  • @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

  • Comment removed

  • UBUNTU FTW!

  • Brother you are my Real Rock Star :)

  • @seekerphn

    :)

  • Thank you SO much, very helpful tutorial! This + TheNewBoston's tutorials = epic learning experience :P

  • @Alpeche21: TheNewBoston is awesome!

  • hi brother..i love u ,your tutorials and vim...i feel like god when i use vim

  • What color scheme are you using? I'd like to have it.

  • @azsrathud: In VIM? What ever the default is on my distro, which I believe was Mint at the time.

  • @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.

  • dude i hope this tutorial isnt like the new bostons, he never continued

  • what version are you using?

  • @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.

  • 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: I'm not really sure what you are asking me. Do you mean the Terminal Window?

  • @metalx1000 like when it first starts it says ur name and all that i want that yeah

  • @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.

  • Every time I try to kill this windows in either IDLE or PyScripter the program crashes :S

  • @Jonte135: Do you get an error?

  • @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: 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 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.

  • 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: Did you install the pygame module?

    I most cases:

    sudo aptitude install python-pygame

  • Cool! You need to make like 1,000 tutorials though. This way you will be able to live up to your name.

  • @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 :)

  • voice is too low :D

  • u da man

  • @rashalaska: Thanks :)

  • what compiler do you use

  • @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 guess that you could use /usr/env/python, but probably I'm wrong... thanks for the tutorial

  • #!/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.

  • thanks alot

  • keep up the good work! I want to see more tutorials like this.

    PS: Where can I find a tutorial about Python?

  • 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.

  • 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!

  • Awesome , more please :P

  • Soon, soon :)

  • 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

  • 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 :)

  • kewl!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more