Button Question
ashriot
Member Posts: 8
I'm working on a game that has a button that you can click to spawn an event. The event could be a monster or some treasure.
My question is: Is it right to put all that code in the single button? The amount of monsters will increase as I work on the game as well as the treasure variety. As it stands now, this one button has so many rules in it that it takes GS like 45 seconds just to open it!
I was wondering if there was a way to separate this code into different actors so that the one button doesn't get so bogged down. I think it would help me manage the code better, too.
Thanks
Edit: Also, GameSalad in general is loading anything I click on extremely slowly. Even buttons with very few rules.... Anything I can do?
My question is: Is it right to put all that code in the single button? The amount of monsters will increase as I work on the game as well as the treasure variety. As it stands now, this one button has so many rules in it that it takes GS like 45 seconds just to open it!
I was wondering if there was a way to separate this code into different actors so that the one button doesn't get so bogged down. I think it would help me manage the code better, too.
Thanks
Edit: Also, GameSalad in general is loading anything I click on extremely slowly. Even buttons with very few rules.... Anything I can do?