• Content count

  • Joined

  • Last visited

About CorayThan

  • Rank

Recent Profile Visitors

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

  1. CorayThan

    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. CorayThan

    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: 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 =, 600); this.radGrad.addToWorld(); this.radCircle = new Phaser.Circle(200, 200, 0); this.outerCircle = new Phaser.Circle(200, 200, 300); this.smokeTween = { 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.outerCircle.y, this.outerCircle.radius, grd);
  3. CorayThan

    Video won't play on Chrome Android

    I'm experiencing this same issue on 2.8.1
  4. CorayThan

    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: