I am able to display a image using Javascript like this:
The problem is however that I want to display the image as if it were a Picture. For example if I use the default editor command to display a Picture and I am on a map then go into a battle it will still be displaying the picture after I return to the map from battle, however with the code posted above when it returns to the map the image vanishes.
So how exactly can I display an image as a picture with code and also then remove it with code?
JavaScript:
// Create Image
var bitmap = ImageManager.loadPicture('ImageNameHere');
var sprite = new Sprite(bitmap);
SceneManager._scene.addChild(sprite);
// Remove Image
//SceneManager._scene.removeChild(sprite);
The problem is however that I want to display the image as if it were a Picture. For example if I use the default editor command to display a Picture and I am on a map then go into a battle it will still be displaying the picture after I return to the map from battle, however with the code posted above when it returns to the map the image vanishes.
So how exactly can I display an image as a picture with code and also then remove it with code?