How do I Computer Generated User/ AI

Get help using Construct 2

Post » Thu Sep 17, 2015 9:48 pm

Hi

I know im asking a big task today, but i have no clue where to start. Im just asking for a push in the right direction. Any Ideas will help. I need the CPU/AI to be able to pick an ability, the "Fire" it at the player. He also needs to be able to doge things the player fires at it.

Thanks Ahead
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Thu Sep 17, 2015 10:45 pm

B
9
S
3
Posts: 142
Reputation: 1,108

Post » Thu Sep 17, 2015 11:45 pm

Ok thanks

Ill try that :D
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Fri Sep 18, 2015 12:08 am

What about shooting? How would i make it pick a weapon and shoot it at the player?
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Fri Sep 18, 2015 12:15 am

variable + AI State + MoveTO Rex Plugin + line of sight, keep reading!
B
9
S
3
Posts: 142
Reputation: 1,108

Post » Fri Sep 18, 2015 1:40 am

Ok Thanks
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Fri Sep 18, 2015 1:53 am

sorry majin buu, again i hate add on's... mostly because im a retard and they never work for me. Do they work for you?

#Ian Harlow. this question is SOOO vague...
like is it a pkm example, where the enemy picks a skill based on conditions
or a rts example... if this is the case you need priority variables, (massive ball ache) if i finish my DK example, I will add a cap x to show it, otherwise i just spam a timing system, which rarely helps unless specific conditions are met

like majin's example, you could have an enemy condition where if the enemy has distance < 200 to a player projectile: perform "roll"

then you would need something to judge the enemies direction, and the angle to roll at

using the "distance" function you can say if player distance to enemy is > 200 use fire (but u need charging effects so it doesn't troll the ability)
or if your happy with the enemy just using the fire ability constantly... im guessing no, but there are great scirra games like this :)eg Bit dungeon) http://www.kongregate.com/games/KintoGames/bit-dungeon
B
9
S
3
Posts: 102
Reputation: 987

Post » Tue Sep 22, 2015 8:28 pm

OK thx
B
22
S
7
G
1
Posts: 90
Reputation: 2,045


Return to How do I....?

Who is online

Users browsing this forum: guannstar, marcinkowski, Yahoo [Bot] and 17 guests