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


I ended up needing to do a chapter one world map remake. It's still WIP but coming along nicely. =D
Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.

Forum statistics

Threads
107,746
Messages
1,031,832
Members
139,884
Latest member
cinar
Top