Dlimit a drawing area

Hi guys, in the game I’m developing, players need to draw a line in a delimited track, and if the line is drawed over the track will appear a “Game Over message”. The problem is that I already know how to draw the line, but I don’t know how to delimit the drawing area. I think I should use x,y coordinates. But how can I do it?

Thanks a lot! :slight_smile: [import]uid: 76800 topic_id: 31628 reply_id: 331628[/import]

Before I offer a solution, please tell me if each track is pre-made, or if it’s dynamically created during the game (I mean its shape - can it be different every time the player plays that level, or just the same?)

Either way, I recommend physicsbodies, but the way we make them is best determined by whether your tracks are dynamically made or pre-made. [import]uid: 63787 topic_id: 31628 reply_id: 128577[/import]

Before I offer a solution, please tell me if each track is pre-made, or if it’s dynamically created during the game (I mean its shape - can it be different every time the player plays that level, or just the same?)

Either way, I recommend physicsbodies, but the way we make them is best determined by whether your tracks are dynamically made or pre-made. [import]uid: 63787 topic_id: 31628 reply_id: 128577[/import]