As promised, giving back to the community!
http://developer.anscamobile.com/code/pointinpolygon [import]uid: 9371 topic_id: 4017 reply_id: 12263[/import]
As promised, giving back to the community!
http://developer.anscamobile.com/code/pointinpolygon [import]uid: 9371 topic_id: 4017 reply_id: 12263[/import]
Thanks for sharing.
Could you please give a usage example for the code above? I mean, after knowing where the user tapped, what could you do with that info practically in your gameplay?
[import]uid: 7356 topic_id: 4017 reply_id: 12276[/import]
Sure - watch this space! [import]uid: 9371 topic_id: 4017 reply_id: 12280[/import]
OK here’s why. (will post a real world example later)
I have a top down type game and want to move/scroll the view based upon the touch placement on the screen. So if the user wants the ‘player’ to move ‘north’ then they can simply move the finger to the ‘north triangle’ and the ‘world map’ will scroll upwards.
I’m porting a game I wrote for Windows Mobile and need this type of interface. [import]uid: 9371 topic_id: 4017 reply_id: 12282[/import]