PlayMaker Help & Tips > PlayMaker Help

Move a map by grabbing it [SOLVED]

(1/1)

blackant:
Hello,

i'm making a 2D game, using NGUI,
 in wich you may grab the map to move it zoom on it.
i fund a way to zoom it and restrict the size
but for the moving part, i'm not satisfacted, with my system, cause it refere to the whole screen size and not the game size... the while i  move my mouse is not on the same spot than the map.

and secondly i would like to constraint it to be always visible.
and when user stop using it, it must return to border position when zoomed, and centered when whole map is visible.

maybe i can use NGUI scroll view but i don't understand how to set it.

here is a little video of the game

//www.youtube.com/watch?v=5AYsvNr69YY

jeanfabre:
Hi,

 I would also study ngui scrollview. Ask on their forum for a working system. I guess you don't need any logic just finding the right ngui setup.

bye,

 Jean

blackant:
ok thx i'll do

blackant:
works pretty nice using NGUI ScrollWiew

you can see how it works following this tutorial.

//www.youtube.com/watch?v=B66xhIvYF00

Navigation

[0] Message Index

Go to full version