AI Enemy Distance

Discussion and feedback on Construct 2

Post » Sat Jan 09, 2016 10:46 pm

Miu3 wrote:you could simply have a sprite on the main character like a zone of influence and when the enemy overlaps with it, it triggers the action


That sounds easy to setup and would probably work out well. Although I will probably not go that route as I am trying to optimize by reducing unnecessary objects/sprites. I know this is only one more sprite but from what I've read I think the test for overlapping is more to process than test of distance previously mentioned.

I always appreciate different ways to solve problems though so thanks for the comment.
ImageImageImage
B
39
S
22
G
11
Posts: 492
Reputation: 9,925

Post » Sun Jan 10, 2016 10:53 am

if there are more than one player character, use for each for player character too
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: lukewasthefish and 2 guests