Movie in Title Screen

Sierena

Warper
Member
Joined
Jul 26, 2017
Messages
2
Reaction score
0
First Language
German
Primarily Uses
N/A
Hello,

i need help with my Plugin-Script,
i will make a movie(mp4)-layer(Sprite) under the title-menu-layer(Scene_Title).

Look picture :)


I want that the movie played behind the menu and not before it.
But the movie is always in front of it, how can I change this?

z index? layer position? Need help, nothing work :_)


In love, sierena
(PS. yeha, my English is very bad, sorry)
 
Last edited:

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
Hello,

i need help with my Plugin-Script,

(PS. yeha, my English is very bad, sorry)
check in Scene_Title.prototype.createBackground
PHP:
Scene_Title.prototype.createBackground = function() {
    this._MyBackSpriteVideo = new Sprite...// you video objet <==
    this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
    this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
    this.addChild(this._MyBackSpriteVideo); //<== add you video sprite or objet or ..picture or .. what you whant
    this.addChild(this._backSprite1);
    this.addChild(this._backSprite2);
};
z index are not exist and is not like CSS. !
z-index is when you code in HTML&CSS
These according to the order when you add the children.
 
Last edited:

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,003
Reaction score
757
First Language
Vietnamese
Primarily Uses
Other
You will need to use PIXI.Texture and PIXI.Sprite for loading the Video.

Code:
let videoTexture = PIXI.Texture.fromVideo('path/to/video')
let videoSprite = new PIXI.Sprite(videoTexture)
To add it into the scene, you need to addChild(videoSprite) in the Scene, there is no z-index so you need to addChild(videoSprite) before any other addChild in the Scene
 

Sierena

Warper
Member
Joined
Jul 26, 2017
Messages
2
Reaction score
0
First Language
German
Primarily Uses
N/A
Hi,
thanks Dr.Yami and Jonforum, its help me really.

My code at the moment :), play the movie in the front of all
the methode Graphics.loadMP4() -> load, play and loop the movie
Code:
    Scene_Title.prototype.createBackground = function() {
        this._myBackSpriteVideo = new Sprite(Graphics.loadMP4());

        this._backSprite1 = new Sprite(ImageManager.loadTitle2(parameters['backgroundFrame']));
        this._backSprite2 = new Sprite(ImageManager.loadTitle2(parameters['backgroundFrame']));

        this.addChild(this._myBackSpriteVideo);
        this.addChild(this._backSprite1);
        this.addChild(this._backSprite2);
    };
Its a Sprite, not the full movie, but in the background
Code:
    Scene_Title.prototype.createBackground = function() {
        var videoTexture = PIXI.Texture.fromVideo('movies/' + parameters['backgroundPicture'] + '.webm');
        var videoSprite = new PIXI.Sprite(videoTexture);

        this._MyBackSpriteVideo = new Sprite(Graphics.loadMP4());
        this._backSprite1 = new Sprite(ImageManager.loadTitle2(parameters['backgroundFrame']));
        this._backSprite2 = new Sprite(ImageManager.loadTitle2(parameters['backgroundFrame']));
        this.addChild(videoSprite);
        this.addChild(this._backSprite1);
        this.addChild(this._backSprite2);
    };

But i mean, i wont play the movie in the background of the Scene_title xP, not the Sprite.

 

Negi-Mox

My hand got fractured!!
Veteran
Joined
Jun 19, 2017
Messages
140
Reaction score
33
First Language
English
Primarily Uses
RMVXA
OH No I can't understand anything:dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy:..???
 

Skunk

Melody Master
Veteran
Joined
Mar 2, 2013
Messages
1,069
Reaction score
398
First Language
English/Slavic
Primarily Uses
RMMV
@Negi-Mox Please don't post just for the sake of posting, unless you have something to add to the discussion.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top