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
722
Reaction score
578
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.
 

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

Latest Threads

Latest Profile Posts

Do you have an audio you want me to animate? If so send me the youtube link and I’ll animate it.
Okay, so I'm working on Draft 2 of my game's script.
Will try to keep you guys posted, if you're interested!

This is vid of my new game, Crystalgazers. A demo is available on my Gamejolt

I just thought of the best achievement for my game: "'I Didn't Know You Were a Developer!' Find and enter one or more dev room(s)."
I made this animation to apply to a job, what do you think?

Forum statistics

Threads
105,590
Messages
1,014,835
Members
137,253
Latest member
Koshibari
Top