(This was originally the fallow up post from “Methods of loading in panda3d?”, separated into it’s own thread as per requested, again, sorry for any troubles I,m causing)
Hey, I just wanted to continue this thread with one more question based on loading, what would be the proper way to have multiple sections of content, so far I have been working with a demo-like style starting with Roaming Ralph, but I never tried multiple characters (before this thread) multiple levels (scenes) and areas, I stuck with one of everything and it worked.
But now I want to expand beyond just a demo-like structure, games need multiple levels/scenes not just one, so I come to you in this fallow up asking is there a proper way to do this? my idea was have python scripts each belonging it’s own egg file containing the level/world/scene itself.
The scripts themselves would contain everything about the egg file such as the opposing characters, NPCs, event logic, sound logic pertaining to the egg file, backgrounds for the egg file and so on, I would then append that logic from the necessary script into the main script to load in the new logic, then flush it out when done, does this sound good or is there a better way? thanks for the response.
Edit: as of today, I tired using python scripts but I got a error telling me that I could not load in modules at the module level, so I guess modules (scripts) can only be loaded outside of a function? I haven’t tried within the class yet, but I assume that classes don’t update like functions would through the task manger, right?