As always - sry for bad english )))
Hi, all, me and my friend almost finished our first game. Unfortunately, I found one annoying bug.
We used rand function in our game (simulation of 2 dice with 6 edges, like in classical board games) for create a stat-checks in game. Throws two “dice”, they added buffs and the resulting number is compared with the number of checks. But in the page after this every time when player go to show stats, and after this go back to main game, this dice roll again and all a changes!!!
Here a bit of code for example:
Player go to “show stat” and after this he back in game and all “dice” reroll again!!! I have one question - how to fix it? )))
Maybe I can just hide “show stats” stats in some scenes - but how???
Or maybe I can somehow make my rand function non-reusable in some scenes - but again, how???