Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!