问关于保存,模块和多种形式。 (VB6) [英] Q's about saving, modules, and multiple forms. (VB6)
问题描述
我想有一些简单的问题。我正在制作一个非常简单的角色扮演游戏,但我的程序对我来说太大了。我试图弄清楚如何使用模块来组织它,我想出了如何创建一个,但我如何导入它以便我可以使用它?我也想知道如何设置一些东西来保存游戏(和加载),只是为了能够保存一些变量值或者其他东西所以我不会每次都从第一级开始。这也让我想到了保存和加载的过程。我想出了如何制作第二种形式,但我如何在它们之间切换,以便我可以使用一个用于你玩的实际领域,另一个用作新游戏的菜单屏幕,加载游戏,保存游戏等等? />
感谢您的帮助。
Hi, I got a few simple q''s, I think. I''m making a pretty simple RPG but my program is getting too big for me to handle. I?m trying to figure out how to use modules to organize it and I figured out how to create one, but how would I import it so I could use it? I also would like to know how to setup something to save a game (and load), just to be able to save some variable values or something so I don?t start at level one every time. This also brings me to the process of saving and loading. I figured out how to make a 2nd form but how do I switch between them so I can use one for the actual field which you play on and the other as a menu screen for new game, load game, save game, ect?
Thanks for any help.
推荐答案
我有一些简单的q'' s,我想。我正在制作一个非常简单的角色扮演游戏,但我的程序对我来说太大了。我试图弄清楚如何使用模块来组织它,我想出了如何创建一个,但我如何导入它以便我可以使用它?谢谢你的帮助。
Hi, I got a few simple q''s, I think. I''m making a pretty simple RPG but my program is getting too big for me to handle. I?m trying to figure out how to use modules to organize it and I figured out how to create one, but how would I import it so I could use it? Thanks for any help.
您好,Jsnova864!
我可以帮助您弄清楚如何设置模块。请继续关注为游戏保存提供更多帮助,因为我在这个领域并不太精明。我也从我的额头拉出这个,裸露在我身边:
Form1代码(如果那么Else声明)
Hello, Jsnova864!
I can help you figure out how to set up your modules. Please stay tuned for more help on saving for gaming purposes as I am not too savvy in this arena. Also I am pulling this one out of my forehead, bare with me:
Form1 Code (If then Else Statement)
非常感谢。我知道它的基本内容,但是我的老师在我缺席的那一天去了模块,我们当前的项目并不需要它,所以我错过了。只是为了确保我顺利完成;为了从模块中调用私有子,它是模块的名称,一个点,然后是私有子的名称。对吗?
Thanks so much. I know its basic stuff but my teacher went over modules on a day I was absent and our current project didn?t require it so I missed out. Just to be sure I got it straight; in order to call a private sub from the module it''s the name of the module, a dot, then the name of the private sub. Right?
非常感谢。我知道它的基本内容,但是我的老师在我缺席的那一天去了模块,我们当前的项目并不需要它,所以我错过了。只是为了确保我顺利完成;为了从模块中调用私有子,它是模块的名称,一个点,然后是私有子的名称。对?
Thanks so much. I know its basic stuff but my teacher went over modules on a day I was absent and our current project didn?t require it so I missed out. Just to be sure I got it straight; in order to call a private sub from the module it''s the name of the module, a dot, then the name of the private sub. Right?
对,模块名称,点和公共子名称...
Go2AgelDude.Sooweet称之为名为Go2AngelDude的模块
Public Sub Sooweet()触发该模块中的代码(Go2AngelDude)
祝你好运项目,你''欢迎!
Right, name of module, a dot, and name of public sub...
Go2AgelDude.Sooweet calls the module named Go2AngelDude
Public Sub Sooweet() fires the code within that module (Go2AngelDude)
Good luck with project, and you''re welcome!
这篇关于问关于保存,模块和多种形式。 (VB6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!