Python Forum

Full Version: Map loading
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am doing a picture based game in python. I want to have the player reach certain coordinates and have a whole new map load, with different boundaries and items. teacher told me to make seperate forms for each level as it would be simpler even though i would repeat lots of code. i did this howeever i cant run the game anymore as the variables x and y responsible for movement wont load in the seperate forums. Does anyone have any tips to help me figure out how to load maps using a seperate form?
What's a form?

Without seeing code, it's pretty hard to give suggestions. Duplicating your code sounds like an odd suggestion, unless you guys haven't covered functions yet.