Where are the 'pictures' pixijs sprites stored? [solved]

Joined
Jun 30, 2017
Messages
42
Reaction score
31
First Language
spanish
Primarily Uses
RMMV
I am working on a very simple plugin, and need access the pixijs sprite of pictures.
That's the sprite shown on screen when using "Show picture" command.

I need to modify the mask of that sprite. I looked into
$gameScreen._pictures[picture_id] but its not a sprite object, doesnt has a 'mask' property.

Thanks.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
713
Reaction score
564
First Language
French
Primarily Uses
They are stored as children of the picture container object of the current scene's spriteset.

Code:
SceneManager._scene._spriteset._pictureContainer.children[pictureId]
 
Joined
Jun 30, 2017
Messages
42
Reaction score
31
First Language
spanish
Primarily Uses
RMMV
Works like a charm, Thanks!
For reference: children is an array, so picture id = 1, is on position 0 instead of 1.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

When you discover great tileset resources that you completely forgot that you had. :kaomad3::kaopride:
Just got a better look at the MZ RTP. I'm very happy with it, especially the sci-fi tiles and sprites. Glad I pre-ordered.
I've just checked the VisuStella Plugins for MZ and there are already 11 plugins. The Yanfly team(perhaps a big one?) really works so effectively and efficiently that some MZ users can likely use tons of Yanfly plugins right after MZ's released (still 13 days from now). I wonder if any other plugin developer(or team) will try to compete with Yanfly this time, no matter how slim the chance to win is :)
Hello! :kaopride:I am new to RPG Maker, though I have been lurking the forums for a while. :kaoswt: Hope to make some friends and learn some stuff here! :kaothx:
And now since I've got the whole game parts working, the *contents* await.

Forum statistics

Threads
100,595
Messages
977,586
Members
132,194
Latest member
linkvaovn88com
Top