Thanks for checking this topic out. 🙂
I am trying to show dozens of copies of a graphic onscreen (during battle). Because of the large number of instances that might be onscreen as well as the fact that the graphics are tied to game elements (so I can't always predict which instances will be onscreen and when), I feel like it would be a smarter approach to avoid using the $gameScreen._pictures array.
However, so far I've been unable to actually show the pictures onscreen without using this array. The following code works properly:
whereas the following code, while it doesn't error in any form, fails to visibly show anything onscreen:
Can you please explain to me why RMMV isn't (visibly) doing anything with the second method, and suggest an approach I could use - preferably without touching $gameScreen._pictures at all - to make the pictures appear onscreen during battle?
I appreciate your help!!
I am trying to show dozens of copies of a graphic onscreen (during battle). Because of the large number of instances that might be onscreen as well as the fact that the graphics are tied to game elements (so I can't always predict which instances will be onscreen and when), I feel like it would be a smarter approach to avoid using the $gameScreen._pictures array.
However, so far I've been unable to actually show the pictures onscreen without using this array. The following code works properly:
Code:
BattleManager.show_new_points = function() {
for (var i = 0; i < this.new_points_to_show.length; i++) {
point = this.new_points_to_show[i];
// ID, Name, Origin, X, Y, Zoom X, Zoom Y, Opacity, Blending
$gameScreen.showPicture(this.next_picture_id, "Big Blue Dot", 1, point.center_x,
point.center_y, 100, 100, 255, 0);
this.next_picture_id += 1;
}
};
whereas the following code, while it doesn't error in any form, fails to visibly show anything onscreen:
Code:
BattleManager.show_new_points = function() {
for (var i = 0; i < this.new_points_to_show.length; i++) {
point = this.new_points_to_show[i];
var picture = new Game_Picture();
// Name, Origin, X, Y, Zoom X, Zoom Y, Opacity, Blending
picture.show("Big Blue Dot", 1, point.center_x, point.center_y, 100, 100, 255, 0);
picture.update();
}
};
Can you please explain to me why RMMV isn't (visibly) doing anything with the second method, and suggest an approach I could use - preferably without touching $gameScreen._pictures at all - to make the pictures appear onscreen during battle?
I appreciate your help!!