Author Topic: Dragging a UISprite in an area (for a match3 game)  (Read 1462 times)

NeatWolf

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Dragging a UISprite in an area (for a match3 game)
« on: November 20, 2014, 05:56:37 PM »
Hi,

I'm building up a match 3 game with NGUI.
I was wondering how to use the DragObject Behaviour to make a UISprite move within its surroundings, eventually dropping it in place or restoring its previous position.

Is it possible to do?

Thanks in advance for your time ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dragging a UISprite in an area (for a match3 game)
« Reply #1 on: November 20, 2014, 09:27:55 PM »
Start by looking at the drag & drop example that comes with NGUI. What you're trying to do is extremely trivial.