Code Monkey home page Code Monkey logo

Comments (7)

cristianbote avatar cristianbote commented on May 19, 2024

Hey!

This doesn't seem to be a plugin related issue, to be honest. All it does it creates a RenderTexture instance from Phaser.
Looking into it, I found out that, if Phaser is not configured to not be antialiased it uses PIXI.SCALE_MODE as a default for textures. https://github.com/photonstorm/phaser/blob/v2.6.2/src/pixi/textures/RenderTexture.js#L90
So, your code does have antialiasing: false and I'm wondering what changes, and why this isn't setup as it should.

I'll get back to you once I get going with it, today.

Cheers!

from phaser-state-transition.

Montoya avatar Montoya commented on May 19, 2024

OK! I've also found that if I set the background to be transparent, during the transition the background is black.

from phaser-state-transition.

cristianbote avatar cristianbote commented on May 19, 2024

Hey!

So, about the transparent background, just take a look here #30 (comment). This was implemented a while ago.
Looking into the antialias issue.

Cheers!

from phaser-state-transition.

Montoya avatar Montoya commented on May 19, 2024

OK I must be doing something wrong:
http://montoyaindustries.com/spin/

I added the noStage param to both going from menu to play and going from menu to settings, but I'm still seeing the black background.

Code for going from menu to play:
this.state.start('PlayScreen', Phaser.Plugin.StateTransition.Out.ScaleUp, null, true, false, {noStage:true});

Code for going from menu to settings:
this.state.start('SettingsScreen', Phaser.Plugin.StateTransition.Out.SlideLeft, Phaser.Plugin.StateTransition.In.SlideLeft, true, false, {noStage:true});

from phaser-state-transition.

Montoya avatar Montoya commented on May 19, 2024

Also I have to set clearWorld to true or else the previous state stays around as a frozen layer.

from phaser-state-transition.

cristianbote avatar cristianbote commented on May 19, 2024

Hey!

Yeah, so Phaser.Plugin.StateTransition.In.SlideLeft is basically and object, on which you can pass along options. The noStage is a property on the transition object. I know, it's a bit unclear, as it is, I need to get some free time to do it.

Let me know of this works.
Cheers!

from phaser-state-transition.

Montoya avatar Montoya commented on May 19, 2024

OK, that works, and I'm also in the same boat of having the next state appear in the middle of the transition: http://montoyaindustries.com/spin/

Sounds like the only solution to that would be to have the next state start out blank and maybe tween in all the elements? Also, still have the antialiasing problem, let me know if you find a solution for that.

from phaser-state-transition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.