Sorry for the confusing title but it's hard to describe the question in a short space lol. I am working on a game with several frames for each stage. I have a debug frame to do all the main code for the game in to try to keep things neater and less of a pain so i can just take that code and drop it into the frames where needed, then activate/deactivate groups as the pertain to particular stages. While this will work i know that this is a big pitfall when new things get added/some things get removed by having to go through hundreds of frames and updated the code. I know it's not best practice but i'm also not very good at loading 1 stage at a time per frame yet either lol. I've read somewhere that frames can be stored by .ini and loaded when a frame starts. That said, shouldn't it be possible (im assuming) to have 1 frame with my code like me debug frame, all the objects that i need, and load each stage thru it based on the ini file? For example, for say stage 1, couldn't i do a start of frame for my debug and link say a stage counter global value, and when the value equals "x" it loads that stage based on the frame number stored in the ini file, then run the code for all the objects out of my main debug frame?
EDIT: or maybe a better way to ask is, would i be able to save the code from the event editor from that debug frame, then load it in each frame without copy/pasting the whole thing. That way whenever i need to update the code i can just update the single frame vs all the others.