View Single Post
  #2  
Old 05-03-2010, 08:28 PM
IGoudt IGoudt is offline
Member
 
Join Date: Sep 2009
Posts: 20
Hello,

this is a programming design issue, rather than a Vizard problem. After reading your story I can conclude that you are not familiar with the ideas of importing. Importing a module (which is contained physically in a .py file) is copying all the contents of that "file" to the current .py you are working in. The imported code is not run until you call it, and therefore it will never slow down the performance of your other code.

Don't get me wrong, as I don't know your code and/or experiences in programming in Python, and also considering some other code-snippets you posted on this forum, you might be stuck now because of a wrong design or lack of experience. Your problem/experiment begs for an OOP-solution (it doesnt have to be OOP, but it helps alot), especially since you are working with multiple games it would be a wise idea to work on a container setup for those games.

I could help you with some help on the code if you wish, you can PM me for that for more contact info.
Reply With Quote