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

208
Views
Phaser3, Creating Rounded Rectangle, Not Staying Put Relative To Window

I'm trying to create a scoreboard using phaser3. It creates the board when I do the following in create function:

    this.gr = this.add.graphics();

    this.gr.fillStyle(0xffffff, 0.3);

    this.gr.fillRoundedRect(32, 32, 100, 300, 32);

    this.gr.fillStyle(0xff00ff, 1);

But it creates it in the top left of the game world and not the screen itself (I'm having to travel to top left of the map to see it rather it being top left relative to window). For context, this is alike agar.io where the player moves around the map with the camera clipped to them.

I tried updating the position using the character sprite's position, but it doesn't flex like it should, and there's probably a more proper way of doing it.

Question: how can I have it be visible relative to the window and not game world?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

YourGraphic.setScrollFactor(0,0);

about 4 years ago · Juan Pablo Isaza Report
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!