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

Joined
Jun 30, 2017
Messages
42
Reaction score
35
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
724
Reaction score
581
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
35
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

3am me: So how do you feel about a character inviting their own character portrait to a tea party? =D

3pm me: //facepalms
I turned 17 two months ago and I feel like I've grown (personality-wise) more in this 1 year than all the 16 years I had lived combined.
Ugh, I may have been cumbersomely eventing a bunch of stuff I could have easily done changing the tileset "Passage (4 dir)" and "Ladder" options. Oops :D
I have no idea why some of the program "splash screen" always on top. E.g, RMMZ loading screen stuck on the top blocking anything I want to do until it fully loaded. What is even the purpose?
One of the secret places in the game.

Forum statistics

Threads
107,644
Messages
1,031,100
Members
139,765
Latest member
silvake1543
Top