beat'em up enemy AI

Get help using Construct 2

Post » Fri Mar 06, 2015 7:05 pm

I need help on a simple enemy AI for this beat'em up game. Here is the capx.
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 35
Reputation: 476

Post » Sat Mar 07, 2015 1:13 pm

Still no help? Anyone?
B
6
S
1
Posts: 35
Reputation: 476

Post » Sat Mar 07, 2015 1:50 pm

Would you mind giving me a little more infomation upon what you'd actually like the enemy to do? IE, where you'd like it to move to and stuff.
B
8
S
2
Posts: 41
Reputation: 643

Post » Sat Mar 07, 2015 1:55 pm

@cristixxx Thanks for providing the capx, but could you also include a written summary of what you're looking for? It is difficult to discern what an appropriate AI workup would be without understanding what you want the AI to DO. :)
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Sat Mar 07, 2015 2:14 pm

Well, if the distance between the enemy and the player is smaller than,let's say 300, i would like to move towards the player until it reaches a collision distance; when it's on that position i would like the enemy to attack every x seconds; also, if at that position already is an other enemy then with a random chance to move to the back of the player or wait untill the other enemy clears the position; i tried to make something with finite states and with little randomness between them not to be too repetitive but i haven't done any AI so far and any help would be enough for me.
B
6
S
1
Posts: 35
Reputation: 476

Post » Sat Mar 07, 2015 7:54 pm

This doesn't do everything you want but might help.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 8
Reputation: 342

Post » Sat Mar 07, 2015 11:14 pm

Thank you!
B
6
S
1
Posts: 35
Reputation: 476

Post » Sun Mar 08, 2015 4:10 am

B
16
S
7
Posts: 301
Reputation: 2,726

Post » Sun Mar 08, 2015 8:13 pm

also this may help for your less than 300 range thingy:

System compare two values :
1.distance(player.X,player.Y,enemy.X,enemy.Y)
< is less than
2. 300
B
8
S
1
Posts: 8
Reputation: 342


Return to How do I....?

Who is online

Users browsing this forum: AmpedRobot and 8 guests