开发者

Ways of making a graphic/visual novel in flash

开发者 https://www.devze.com 2023-03-17 05:27 出处:网络
I\'m trying to make a visual novel in flash, I have created the UI and the characters, but I don\'t know what could be the best approach as how to load the dialog and how to save them. I\'ve been thin

I'm trying to make a visual novel in flash, I have created the UI and the characters, but I don't know what could be the best approach as how to load the dialog and how to save them. I've been thinking about external files, but I don't know what could be the best type of files to do so. Also, when I load the game I want it to continue in th开发者_开发问答e same scene and with the same variable values (obviously) is there a way where you can save all of them (like an image of the game).

Thanks in advance!


I've been working on a flash game that will need chains of dialogue and repeated sets of interactions. My idea is to create a "cut scene" class that would load up a xml file which goes to describe any number of different pieces of dialogue, available user actions, etc. I haven't built it yet, so its just theoretical at this point, but I think the idea is sound. In your case, you could use this approach to describe, say, an individual page, that would contain individual panel nodes, characters, dialogue, etc. In your parsing class, simply build your elements based on this data. In this case, maybe you have a different xml file for each page, then.

As far as saving your state, I think shared objects, flash cookies or whatever is probably the right way to go.

I this scenario, the user would come back to your app, the current page ID would be registered, xml would then load, and finally the page view would be constructed.

Maybe that helps?

Cheers!


You can use flash cookies, aka local shared objects. From wikipedia:

By default, a Flash application may store up to 100kb of data to user's hard drive. If the current limit is exceeded, the user is shown a dialog requesting more storage space.

Saving the state of the entire app would mean saving the state of the player. I don't think anyone's written a flash player that allows this, but it's possible.

But this is assuming you want it to run on the desktop, in which case why not use a vn maker?

Otherwise, I would make a thin client in flash (or html5), and store the state in a database record for each user.


You can just make an external file that contains the scene an the frame that was saved and the variables that need to be used more than once in the game (and does change). To load, you need a system to get the variables and the frame.

Hope it was helpful!

0

精彩评论

暂无评论...
验证码 换一张
取 消