Game Mechanics Help with a weapon upgrade

W

wolfjellyfish

Guest
So I'm trying to make a sword upgrade in a game I'm trying to make. I have the sword as a state in the player object and can make it appear, do damage, and disappear.

I've made an upgrade object which when it collides ups the damage and changes the sprite. However as soon as the sword stops touching the upgrade item it doesn't save the damage or the sprite can someone help me fix this so it keeps the damage and sprite?
 
Top