How do I detect an object in a random area?

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hi C2 community!

    I'm trying to find a way to detect an object within an random internal area comprised between a central object and a line composed by dashes generated by the touch of the player around this central object.

    I did this illustration below for you guys better understand the situation. If at least one of these objects stay in this random internal area, the player loses.

    I tried to make it through the Line of Sight behavior, calculating the area composed of each stroke object that makes up the broken touch and the central object, but didn't get success. I also tried two methods sugested by our comrade R0J0hound, but didn't get success too.

    I thank you in advance your attention and collaboration. ^^

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Place a circle sprite and scale it to the size of the dotted line.

    then do a check

    If redbox is overlapping circle area

    AND redbox is NOT overlapping inner blue circle -> Loss

  • Afraid the dotted circle was a lazy representation of the facts, i read that the user draws the dotted line. Can be a circle, can be anything, if users are allowed to draw its usaly a ....

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)