hi everyonei am trying to implement a spaceship game using python 3.2.3, the codes runs or compiles but refuses to load the images using photoImage of the game. i cant call the drawing functions it gives me errors, need your assistance please

hi everyonei am trying to implement a spaceship game using python 3.2.3, the codes runs or compiles but refuses to load the images using photoImage of the game. i cant call the drawing functions it gives me errors, need your assistance please

Hi Esther,That little bit of code is not enough to reproduce the error your getting.Its like taking just your spare wheel into a garage and asking them why your car wont start.Please read this this post on how to better get help http://python-forum.org/viewtopic.php?f=10&t=145

Well personally if you really want to make a game in python I would suggest trying to use Pygame rather than Tkinter (I am admittedly a bit biased). There are a couple examples in the Game Development section of this forum. Generally when you animate things on screen you are literally telling the program to change image every giving time period, not just trying to show an animated gif. My only advice to you at this point is start small.

Also a few other notes: start using os.path.join for your paths rather than what you are doing. There are also far too many global variables in your code (if you do intend them to be constant do yourself and everyone else a favor by putting them in all CAPS. Also I don't quite see why you think you need the getter functions in your first class.

Esther, I appreciate your initial attempt to post a small amount of code. Any chance you could delete or edit your second code dump? "An Introduction to Interactive Programming in Python" is still running ("Spaceship" this week, "Rice Rocks" the next) and the course will probably be repeated in the future.