I am wanting to create an RPG in the molds of Final Fantasy (III, IV, V, VI, VII), Pokemon, etc … 2D, where the character walks around the map and when he goes to battle, he enters a new screen to battle.
So I’m thinking of making the map where the character moves in a scene and when it encounters an enemy, the battle scene is going in a new scene.
My question is, how would I do to pass the data to character stats that map to the new scene (I’m saving the attributes of attack / defense / etc … in variables) how do I call this variable in the same scene battle and so ended the battle scene to upload the map again in the same spot where the character was?
And one last question. You can load a scene, passing attributes to her? Because I’m thinking about when going into a battle and is loading the battle scene, pass as an attribute, which enemy, the character will face.
Thank you I will try here.
Well, I have a class that manages each character (CharacterPerson Class), if I put it as static, so when I call the objects that make use of this class in another scene. All attributes remain with the same value, is it?
Before I thought of using the ArrayPrefs2 save everything, and when I carry the other scene, I return the values that I saved earlier.
But as the game is for iOS not know if influence on performance.