Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Drag and multitouch Zoom code ?

Author
Message
Mamute
21
Years of Service
User Offline
Joined: 16th Oct 2002
Location:
Posted: 26th Apr 2012 11:20
Hello guys,

Does any of you have a working code for AppGameKit on draging the view on a single touch and zooming on multitouch (2 fingers), and also two fast touches for zoomin and zoomout like say Angry Birds style ?

Thank you very much !

Best Regards.

|MaMUtE|
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 26th Apr 2012 11:43
I'm sure I saw a pinch zoom function around the forums somewhere...

Here it is:
http://forum.thegamecreators.com/?m=forum_view&t=194613&b=41&msg=2319242

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 26th Apr 2012 12:01
I can't remember if that code will drag the view too using just one finger. It's not too hard to write though. Just use the multi-touch loop in that code and if there's less than two touch events (getRawTouchCount()) you know you can adjust the view using setViewOffset()...

Login to post a reply

Server time is: 2024-05-04 23:45:07
Your offset time is: 2024-05-04 23:45:07