How to Make A Visual Novel_5 some thing you no not want to change
staticvar.xml
while making a game, you might have some special variables which you want to make them static.Such as how long the time your player spend,how many times they finish your game.
Place the variables in the node <staticVar> </staticVar>.Then these variables won’t change when save and load.
Example:
<sv>
<staticVar>
<filecomplete1>0</filecomplete1>
<speed>1</speed>
<eDLmad>0</eDLmad>
<eBE/>
</staticVar>
</sv>
there are four nodes in the node <staticVar> of this example.
The node <speed></speed> should not be removed.( used to set ratio of the speed of imagine or background fade out, also set the speed of the menu bar hide and show ).
in this game you can use a filecomplete1 to keep a variable of the state of episodes.
Evaluation the variable to 1 at the end of one episode. When the player load an earlier save point, the variable will not change back to 0.
0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页