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,606
Reaction score
1,399
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
994
Reaction score
738
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,067
Reaction score
383
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

gotta update my game project thread page later
So trying out Ultra Mode 7 was a bad idea. How do I not include this in my game? XD
Stumbled upon an RPG Maker game on Steam called 'Boobs vs Zombies' while looking for a zombie themed fantasy RTS. lol
There's a new born faction in my country called "Sunda Empire" claiming they have right to rule over the earth and sun... I don't know what to feel...
Quon is watching you
Quon blessed your good efforts

Forum statistics

Threads
93,547
Messages
913,400
Members
123,084
Latest member
porkipon
Top