Hi Guys !
I have a character with a number of attributes ( Stardamage multiplier, clawDamagemultiplier, level, money, and XP).
However, when i go trough a portal into a new world, i lose all of these attributes..
What's the cleanest and fastest way to pass on these values :) so i dont lose them in the second world..
This is the code which is written in each of the 7 worlds.
I Hope you guys can help !
//Level LevelCounter levelcounter = new LevelCounter(); addObject(levelcounter, 100, 30); //XP xpbar = new XpBar(); addObject(xpbar, 395, 27); //HP HealthBar healthBar= new HealthBar(); addObject(healthBar, 100, 125); //DAMAGE StarDamageMultiplier stardamagemultiplier = new StarDamageMultiplier (); addObject(stardamagemultiplier, 698, 33); ClawDamageMultiplier clawdamagemultiplier = new ClawDamageMultiplier (); addObject(clawdamagemultiplier, 698, 78); DamageBar damagebar = new DamageBar(); addObject(damagebar, 700, 125); //Mesos MesoCounter mesocounter = new MesoCounter(); addObject(mesocounter, 100, 80); //Character addCameraFollower(new Rogue(levelcounter, mesocounter, healthBar , xpbar), 0, 0);