Jump to content


  • Content Count

  • Joined

  • Last visited

About Fenopiù

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Good morning everyone! I use a shader in my game who create a starfield and then, after a while, it slowly disappear from the center to all the screen. On every device I've tested (pc, Android, iPhone 5c, first iPad, Mac book pro, ecc...) it work as I want. In the new iPad the whole in the center, instead of be "trasparent" or "invisibile", it is total black. Anyone have a clue to solve this?
  2. I've created the button via DOM in Phaser/Typescript. In theory, you can put your function "login" wherever you want... but it have to exist BEFORE the browser see "<button onclick="login()">Log In</button>". That's why I've followed the DOM solution.
  3. Maybe a bitmapdata with blenddarken or blendlighten? It seems the right way but there are no examples and they seems to not work in Phaser 2.6.2... 😞
  4. Hi everyone! I have some sprites that goes down, I would like that when they become nearest to a point, their alpha goes down bit by bit (so not for all the sprite but just the bit who touch the alpha zone) and then disappear when they overcome that limit. I let disappear the sprite over the limit with a mask. How can I give them the dinamic (smoked) alpha too?
  5. Or you can simply create your "tweens array" and call a kill to every tween in the array except the one you want to let alive.
  6. If you put them in a group, you can destroy any child except one.
  7. Hi guys! There is a way to draw an ellipse with bitmapdata with Phaser 2.6.2? I've found out how to draw an ellipse as a Phaser.Ellipse and Phaser.Graphics.drawEllipse... but I need it as Bitmapdata where I've found just circle and rectangle. I need to draw en ellipse gradient.
  8. Good evening everyone! I'm using Typescript and Phaser 2.6.2. I've a box where sprites are rendered, outside this box they aren't. To do this I've applied e mask (drawRect). Now I've to give to the top and the bottom of this box a little shade, so the sprites that enter from the top of the box starts to be rendered in the box with alpha 0 to alpha 1 and the sprites that leaves the box from the bottom are going to alpha 1 to alpha 0 and then they will be no more rendered outside the box. How can I reach this? The only solution I've found is to put a sprite or a bit
  9. Same problem for multiple mask to a group (filled with sprites)?
  10. Have you tried: game.input.onDown.addOnce(this.updateText, this); or better: game.input.onDown.addOnce(function(){this.updateText()}, this); ?
  11. In your function put sender as parameter, in that case it will be the button clicked, so you can have just one function to manage them all. function openWindow(sender){...}
  12. The problem was that parent div has fixed width and height but the child div do not inherited them and had 100% innerwindow width and height without any reason. Solved with a CSS rule... but in any tutorial I've saw says it is unnecessary because there it should be implicit inheritance.
  13. Thanks for the answer @alex_h. No, it's in another page. I've parsed the page as a string and substringed it in a variable. Now, while I render the variable with mydiv.innerHTML = mystring; it render it full page. I've tested cutting my HTML file to just the div that I want and render the full page with: mydiv.innerHTML = "<object width=\"100%\" height=\"100%\" type=\"text/html\" data=\"" + myhtmlpage + "\" ></object>"; it render mydiv size. How can I have the same result in the string version too? Update: The problem is that
  14. You could try to put things in two different gorups and render the sprite group above the graphic group or use the same group and add child in right order.
  15. What if, instead of a full HTML page, I've to render just a <div id="bla-bla-bla">content</div> to render?
  • Create New...