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

Link to this comment:

Share to:

All Comments (31)

Sign In or Sign Up now to post a comment!
  • please could you tell me how can i load an image in windows

  • @warking2012: Same way.

  • Really great tutorials.

  • Hey man, I am following your tutorials at the moment, and I am having a problem with pygame crashing.

    I am using Python 2.5, and I am also using the Python shell for editing. everything works with the program, except when I go to exit, the pygame window seems to freeze? Any help would be much appreciated! :D

    Cheers, Dan

  • @TheSpliceScreen: sure, zip up your script and any files it uses (images, sounds, etc...) and upload it someplace so I can download it. If you don't already have a site that you can upload files to, I give this one a try:

    ompldr.org

  • @TheSpliceScreen You should also enter in the if statement in the for loop 'pygame.quit()' but put it before sys.exit()

  • @TheSpliceScreen add a line pygame.quit() before sys.exit(). It will close but you'll get an error. It won't affect your program you create a variable done = False and when the user presses QUIT, you can change it to done = True. Then change the while 1 to while not none:

    Hope this helps ^_^!

  • @TheSpliceScreen import os and use the function os_exit(0) function instead of sys.exit()

  • you should set tabstop = 4 (it seems 8?)

  • okay i fixed it. im glad i found this tut, cuz thenewboston showed the long and hard way to do it.

  • it says for me that it could not open my images. ive used them before though, in pygame.

  • Chris, filmsbychris(dot)com seems to be owned by a squatter, now.

  • @ncdave4life: Yeah, I'm filmsbykris(dot)com

  • @metalx1000, oh yeah, I finally noticed that; I came back here to correct my comment and found you'd beaten me to it. :-)

    Anyhow, thanks for some very nice tutorials, Kris!

    After watching a couple of them, I discovered the "Pop out" button at the bottom of the screen, which opens the video in a resizeable window, which makes it a lot easier to read your screenshots.

  • boy that black background isnt nice for watching , its like looking into the blackness of space with a few brighter bits, the text. Dont know how you work with Vim.

  • @poojkhgf: What do you use, nano? Text Editors are a thing that are a matter of Opinion. To each his own. But, the black background has nothing to do with vim. It's my choice in themes for my terminal. Black is less stressful on the eyes.

  • @metalx1000 I know Text editors are a personal choice but If I was making a video I would make one where it was easy for people to see the text !!! Even when the text is bright green it is still not as easy to see as black on white. When the text is other colours I have great difficulty. Be kind to viewers ! please?

  • so what do i do if the image is already on my computer

  • @john81078: Not sure if I understand what you are asking. The tutorial shows you how to load a file that is one your computer. Are you asking what to do if the image isn't in the same folder as the pygame script?

  • @metalx1000 U copy & pasted the url of the image. so what do you do if the image doesn't have a url because its on your computer not the enternet

  • @john81078: When I copy and pasted the URL it was to download the image to the local DIR using wget.

    Sorry for the confusion.

  • I love your tutorials! Keep em coming. :P

  • Perfect timing on that one,

    since Iam trying to learn python : )

  • Python is great. I have really been slacking on it lately. But now that I'm starting up with it again I'm going to start doing a bunch of videos on it.

  • What os do you use?

  • Linux OS.

    Distro, Debian or Debian based (currently Mint).

  • awesome tutorials, can't wait to see more

  • Fullscreen mode? This is practice for your phone, right.

  • Yes, I know how to do full screen.

    But, I have to do a tutorial on key press so you don't get stuck in fullscreen mode.

    But, if you would like to jump ahead use this code:

    pygame.display.toggle_fullscre­en()

  • Very nice

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