What if i have a global variable that has a random number set to it. number 0-3 and each number has a corresponding sprite or character that should spawn when the global variable is one of those numbers?
Develop games in your browser. Powerful, performant & highly capable.
let's say the global variable was set to 0 a corresponding sprite is supposed to spawn.
I am making a turn-based game and the object wont spawn even if it is set to spawn that sprite depending on the global variable.
Member since 6 Mar, 2023