CorayThan

Members
  • Content count

    4
  • Joined

  • Last visited

  1. Why does my gradient disappear?

    You're right that I was using the same number for diameter and radius. Later I tried removing the inner circle entirely, though, and just did a gradient from a center point, and had the same issue. Now I'm on a different computer and not having the same issue at all though ... maybe it is a browser-specific issue?
  2. Why does my gradient disappear?

    I'm trying to create a radial gradient that starts from a point and grows from there, a little like smoke filling a room. I started with this example: https://phaser.io/examples/v2/bitmapdata/radial-gradient And have been slowly tweaking it to meet my needs. My current issue is that when my tween stops running the entire thing disappears. It's probably a really obvious issue, but I'm a newb and can't find it, so was hoping for help! Here's what I've got (it's in Typescript): in create: this.radGrad = this.game.make.bitmapData(800, 600); this.radGrad.addToWorld(); this.radCircle = new Phaser.Circle(200, 200, 0); this.outerCircle = new Phaser.Circle(200, 200, 300); this.smokeTween = this.game.add.tween(this.radCircle).to( { radius: 300 }, 20000, Phaser.Easing.Sinusoidal.Out, true); In update: const grd = this.radGrad.context.createRadialGradient(this.radCircle.x, this.radCircle.y, this.radCircle.radius, this.outerCircle.x, this.outerCircle.y, this.outerCircle.radius); grd.addColorStop(0, "rgba(0,0,0,0.3)"); grd.addColorStop(1, "transparent"); this.radGrad.cls(); this.radGrad.circle(this.outerCircle.x, this.outerCircle.y, this.outerCircle.radius, grd);
  3. Video won't play on Chrome Android

    I'm experiencing this same issue on 2.8.1
  4. Phaser + Typescript issue

    I've got an issue with phaser and Typescript where my classes that extend Phaser classes aren't recognizing the Phaser class fields. I posted a pretty detailed stackoverflow question about it, but was wondering if anyone on here might have a suggestion. Feel free to reply here or there. Here's the details: https://stackoverflow.com/questions/45091893/cannot-access-base-class-properties-in-typescript/45100163#45100163