Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

247
Vistas
Phaser 3 Adding custom shadow effects to sprites

The designer at my firm is adamant about adding custom shadows to some of the sprites in our games.

sample of the shadows required

Above is an example of the required effect; the shadow separator and the shadow below the balloon sprite.

Using the method of adding a similar object with a different tint and lower alpha gives 'no where near the similar result' as the alpha in the required shadows is not uniform across the shadow.

let shadow = this.add.sprite(posX, posY+20, 'balloon')
.setOrigin(0.5);
shadow.tint = 0x000000;
shadow.alpha = 0.3;

let balloon = this.add.sprite(posX, posY, 'balloon')
.setOrigin(0.5);

As seen in this question

Any help getting me a somewhat similar shadow effect would be much appreciated, because I'm not sure how I can achieve this without simply putting the whole shadow as an image.

PS: I'm using phaser 3

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda