Author Topic: Masking  (Read 4453 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Masking
« on: March 15, 2013, 10:15:49 AM »
There's a way to mask Sprites?
I just found this PixelPlacement way. There's another way?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Masking
« Reply #1 on: March 16, 2013, 11:03:34 AM »
It's all shader related. If the shader used by the material of your atlas supports masking, it will happen automatically.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Masking
« Reply #2 on: March 18, 2013, 07:58:37 AM »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Masking
« Reply #3 on: March 18, 2013, 03:30:28 PM »
For a cooldown effect, simply use a Filled Sprite.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Masking
« Reply #4 on: March 18, 2013, 05:05:31 PM »
Well, the round button is not exactly what I'm looking for. What I'm looking is, if I have a star shape with borders, for pictures frame, so the user can upload a picture and it would be mask it to place on the star.


Like creating a sprite with this shader for masking any shape you want, and you can use any sprite with this shader for masking what ever you want, just need to use the same layer. But it could be a different way, this is the way I saw on PixelPlacement.