Author Topic: How to make part of an ngui sprite transparent  (Read 3383 times)

TommyT31

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
How to make part of an ngui sprite transparent
« on: June 16, 2013, 11:34:16 PM »
Hi all.

I'm trying to do a map for a game I'm doing that's based on squared. I would like to cover a pretty drawn map and reveal the squares around you. I was thinking I could use indiviudal sprites but this seems pretty inefficient if you map is like 50 x 50 squares.

There must be a way to do this but I'm not sure where to start.

Any tips or advice on what to look into ??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to make part of an ngui sprite transparent
« Reply #1 on: June 18, 2013, 12:40:03 AM »
Create a texture, set it to point filtering, fill its data when you need to update it, and use UITexture to display it.