I'm making a circular radar, similar to this - http://www.crestock.com/images/440000-4 ... 234-xs.jpg
Basically, when objects go outside of the circle, they must be hidden, but only in part (so i can't just make them invisible).
The two ways I can see of doing this so far is-
- Make a radar layer, use the mask effect and make a square the size of the screen with a circle cut out in it to allow to see into the radar. This way when objects move out they are hidden by the large mask object.
- Paste the blips into a canvas, then use erase effect on the canvas to delete any pixels outside of the circle.
Which is the more CPU/GFX card efficient way? Is it even possible to use the canvas method? I tried and it doesn't seem you can choose where to paste images in (x,y) and generally feels a little bit limited?
But im mostly keen on keeping CPU usage low, as this game will one day be a bit of a beast and thus i want to keep it fast from the start.