Correct Usage of RPGMakerMZ Sprites

Am I not welcome here? Delete everything.

The sprite object also needs to be added as a child object to a scene object. If we added SceneManager._scene.addChild(_sprite)then it will appear in your game.

Sprite objects automatically comes with a visible flag which you can use instead of _hidden

After that, the script is missing instructions for drawing bitmap data on to the sprite

Not welcome here? Delete everything.

You can also create a class for it explicitly, but yeah that should work, as long as you only need one instance of it. If you create multiple instances then it’s better to have a proper class, I’d say.

For how to create a class you can check the default code, how the other sprites are created.

TBH, when I use simple Sprite objects I just make a container class instead.

I usually load the bitmap (either from image manager or make one from scratch), do everything I need on it, then I create a sprite with the bitmap as a constructor param. Then add it to the scene or to a window I guess.

My workflow is inspired by MOGHUNTER’s, I can’t say if it’s better or worse than others.