there is no space, it is just an appearance... I have no idea when and why it happened - there are no spaces in the original
I have already resolved the issue on another forum ...
there was a person who could give a more or less normal answer ^^
we are trying to refer to the internal variable of the class, respectively, in the description of the class, you need to add references to the call:
in class Spriteset_Map
attr_reader: viewport1
in class Scene_Map
attr_reader: spriteset
after which the script works.
$game_variables [30] = nil
$game_variables [30] = Sprite.new (SceneManager.scene.spriteset.viewport1)
# $game_variables [30] .viewport = SceneManager.scene.spriteset.viewport1
$game_variables [30] .bitmap = Bitmap.new (544,416)
$game_variables [30] .bitmap.fill_rect (0, 0, 544, 416, Color.new (255,0,0,255))
# $game_variables [30] .z = 0
$game_variables [30] .x = 0
$game_variables [30] .y = 0
original: