- 2,048
- Posts
- 17
- Years
- Seen Sep 7, 2023
Global variable abuse ITT.
Using global variables willy-nilly is bad practise in an object-oriented language like RGSS. Just thought I'd let you guys know. You could, for example, add a @battler instance variable, which is set when the PokemonBattlerSprite is created or the current Pokémon is switched.
Using global variables willy-nilly is bad practise in an object-oriented language like RGSS. Just thought I'd let you guys know. You could, for example, add a @battler instance variable, which is set when the PokemonBattlerSprite is created or the current Pokémon is switched.