I have been recreating the popular "Snake" in the editor. Now, the problem is I want to detect "eating" by attaching a region to my "snake head", and any enemy unit entering will be eaten, adding a snake segment. I am having trouble attaching the region properly, as I want to do with a polar offset, so the eating region is always in front of the snake head, but whenever I try to attach it with an offset of a point with a polar offset, the region just seems to go somewhere weird (tried creating things in the region, they never appeard anywhere as far as I could tell). Here is the little snippet of code that's supposed to attach the region:
Howdy,
I have been recreating the popular "Snake" in the editor. Now, the problem is I want to detect "eating" by attaching a region to my "snake head", and any enemy unit entering will be eaten, adding a snake segment. I am having trouble attaching the region properly, as I want to do with a polar offset, so the eating region is always in front of the snake head, but whenever I try to attach it with an offset of a point with a polar offset, the region just seems to go somewhere weird (tried creating things in the region, they never appeard anywhere as far as I could tell). Here is the little snippet of code that's supposed to attach the region:
This doesn't work at all, so how would I go about doing this? There is no such thing as an attach region with polar offest?