Comments (7)
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.
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.
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.
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.
Also I have to set clearWorld to true or else the previous state stays around as a frozen layer.
from phaser-state-transition.
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.
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)
- [Question] Need help to use this plugin HOT 10
- state "create" method being called twice when using "In" transition HOT 14
- Want to use default state parameter HOT 2
- State slide left transition in draws twice HOT 10
- Transition does not care about camera position HOT 2
- Starting a transition while a transition is running creates a ghost snapshot HOT 4
- `game.state.start` can take other parameters, which this hijacks HOT 5
- Misplaced sprites and groups after state transition HOT 5
- Add list of transitions HOT 3
- (chore) Benchmark tests should be included
- Codepen examples HOT 1
- Persistent Sprites Hidden behind background in Snapshot HOT 6
- Typescript definition updates ? HOT 3
- Blank screen before transition HOT 1
- Feedback needed HOT 7
- Screen blinking upon transition HOT 4
- Support for v3
- v2.10.0 breaks the position of the slide HOT 2
- Unable to use .js HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phaser-state-transition.