tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Actually, the easiest method might be to calculate the distance magnitude between the two actors and have a rule that says if [magnitude] > radius --> do something awesome.
Yes - Actually easier than I thought. Made a self attribute on the moving actor self.distancefrom and constrained to that magnitude( self.Position.X -624, self.Position.Y -380) - The 624 and 380 being the x/y location of the circle.
Now a rule which says if self.distancefrom is greater than 360 (half the size of my circle) do something. Seems to work so far.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Now a rule which says if self.distancefrom is greater than 360 (half the size of my circle) do something. Seems to work so far.