Help with making an "upgrade" game.


  • Posts: 54
Y'ello! I've been trying to make a game focused on upgrading, akin to games like Burrito Bison. I've got it so amassed money can be spent on a button, so it will upgrade you, and so it will change animation into a more expensive version of the upgrade, and I got that working so that it will cost as much as is stated each time. The problem is that as soon as I leave the upgrading scene and go back to it after a round, the upgrade buttons revert back to their first, cheap animation. PLus, the game even saves after leaving the upgrading scene.
How can I make it so purchased upgrades stay...purchased?


  • Posts: 1938
On button creation, change the animation depending on conditions.


  • Posts: 35
If I read it right. what you need is to use game attributes. 


  • Posts: 54
I've been trying to (attributes are fun!!!), still no go. I have it so, basically, each animation change sets a new boolean to true, and the previous to false (e.g. " set 'Animation1?' to false/ set 'Animation 2?' to true "). Upon creation, "If 'Animation2?' =true, switch animation to 'Animation 2'".
Sorry if it's vague, It's hard typing out :P


  • Posts: 54
It's sort of like the value (correct term? I'm new) of each Boolean resets or something when the scene changes, regardless of saving.


  • Posts: 54
OK, I solved it. You meant an actual game attribute, not just an attribute in the game, haha woops! I ended up using good ol' numbers, instead of boolean complexity.


  • Posts: 411
you could use boolians, or range modifiers for instance if kills > 99 and <200 then set animation to 2

That will save you from having 18 boolians if you have a lot of kills coding. I used something like this for an achievement system.

Check my profile to test my games in development.
Asterite Saga:
Next Game in development.