Sign in to follow this  

Screen fade to black

Recommended Posts

Much to my surprise, I could not find the answer to this question anywhere. Is it possible to fade the whole screen to black (with a tween if possible) without the use of a custom filter? And if I do need to use a fragment shader, will I be able to tween it like any other variable?



Share this post

Link to post
Share on other sites

Fade from black when you start state (oncreate)'#000000');

Fade to black from state:

startGame: function (pointer) {;'#000000');,this);
    fadeComplete: function () {

Make sure you have the latest version of phaser.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.