Hi, I'm wondering if there's a way to fill a circle, but with white pixels instead of black pixels. I'm creating a powerup that essentially clears the screen of enemies, and drawing it as a pentagram, but the background sprites are still visible within the pentagram:
In the above screenshot you can still see the grass behind the pentagram. I'd like it to be covered while the pentagram is still in that area, but gfx.FillCircle fills the circle black.
You have to call gfx.setColor(gfx.kColorWhite)
before calling fillCircle
to change the fill color to white.
It applies to every subsequent draw call so don't forget to change it back to black.
Thank you, this worked perfectly. The circle now covers up the sprites behind.
Dredging this up from the past because I like your sprites! I'm curious: did you ever make this into a full-fledged game that I can download from somewhere or was it just an experiment?
Hey, sorry for the slow response, but I did make this into a full prototype. I had bigger plans for it, but began to lose interest as I ran low on time available to work on it, but your question inspired me to upload the finished prototype. Check it out here. Source code here.
Awe it sucks you ran out of time for it as I was curious what your vision was. I really appreciate you making your prototype available - maybe I can take your source and put my spin on it sometime
I just downloaded the pdx from your Itch link and will give it a launch soon!
I had to add a bundleid to the pdxinfo file for it to sideload but other than that I think we're good to go!
Thank you for releasing your prototype, Graham! May you get some more free time these days - at least enough for self care