Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda