Hello,
I have been fighting with that for a few days, but I find no solution. In my game, I have a path made of a polyline. I need that the user’s finger keeps on the path. If it gets out of the path, game over. I need it to be a polyline, as I think it is the easiest way to draw different paths.
As the path is a polyline, I cannot check the touch coorinates with the polyline center. So any coordinate checking is useless (I think). Maybe if I build an invisible cilrcle and check if it is on the polyline, it would work, but I have no idea how to make this.
Anyone could help me? Anyone could send me some simple code that do this with polylines?
Thank you very much in advance! [import]uid: 40363 topic_id: 7728 reply_id: 307728[/import]