I have question, why when try to add XP from current level to Total XP, TotalXP just rise every second till I back to main menu and TotalXP is last number given from last level. So basic when connected to Cast from SaveGame XP just rise… So basically there is loop in ‘‘cast to SaveGameJumper’’
Is the adding of coins to your XP intentional?
Every call of End Game Score will increase it’s value.
Example:
coins : 50
xp :400
Total XP : 1000 (start)
Total XP (new) = coins (50) + XP (400) + Total XP (1000)
Total XP gets summed to 1450 and set and saved
on consecutive “end session” (This is with the loading of saved values)
coins : 50
xp :400
Total XP : 1450 (start)
Total XP (new) = coins (50) + XP (400) + Total XP (1450)
Total XP gets summed to 1900 and set and saved
For now is set 1 coin = 1 XP but when widget ‘‘Win game’’ show exp constant rise like 10,000 per sec and if i wait like 10 sec and back to main menu total XP will be 100,000
I fix everything by transfer code from ‘‘win widget’’ to player blueprint and add custom ‘‘AddCoins’’ function