Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.4 Regression: Null Sprites Using Last Created Texture in WebGL #2176

Closed
joelika opened this issue Oct 29, 2015 · 5 comments
Closed

2.4.4 Regression: Null Sprites Using Last Created Texture in WebGL #2176

joelika opened this issue Oct 29, 2015 · 5 comments

Comments

@joelika
Copy link

joelika commented Oct 29, 2015

I ran into this issue when I upgraded from Phaser 2.4.3 to 2.4.4. I use null sprites quite a bit to define hit areas over text, and in Phaser 2.4.4 I noticed that Phaser was using whatever the last created texture and displaying it on the null sprite instead of no texture.

Here's a test case with both a text sprite and some bitmap data:

https://jsfiddle.net/tanptet2/5/

Once the jsFiddle loads, you may have to hit "run" to see the duplicated textures.

In Phaser 2.4.3 and below, the null sprite would not have a visible texture of any kind.

@photonstorm
Copy link
Collaborator

This is fixed in the dev branch already. In the meantime you can resolve it by setting the skipRender parameter of the __default BaseTexture to false. You only need do this once.

@jmp909
Copy link

jmp909 commented Nov 24, 2015

Duplicate issue #2173

@Tdnshah
Copy link

Tdnshah commented Mar 16, 2017

Hi all,
I am developing a game for a educational social cause using phaser.js. In this game i wanted to use a pop up after the player click on the submit button. The pop up will contain the correct answer if the student(i.e. player plays the game wrong) and if the player plays it right the a congratulations message to to be displayed in the pop up.

While searching for how to make popups in phaser i found this modals library i am trying to embedde this in myy game to show popup but i am unable to create and embed this.

This are things i tried till now :-

I had added the modal.js script in index.html

I used the function given at the usage section on this page but it dosen't work.

You can find my code at:-
https://github.com/Tdnshah/Phaser-Pattern-Games/blob/a0f86ade77bdda8da2f69cca767e694a6befe974/src/game1.js

Please if any one can help

@jmp909
Copy link

jmp909 commented Mar 16, 2017

Not a phaser framework issue @Tdnshah

Please post on the html5gamedev forum
http://www.html5gamedevs.com/forum/14-phaser/

@Tdnshah
Copy link

Tdnshah commented Mar 16, 2017

Thanks for such a prompt reply
Opps sorry can i know any simple way to create popups in phaser @jmp909

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants