Help with AI

Get help using Construct 2

Post » Fri Dec 09, 2011 2:51 am

Hi, I dont know if here is the best place to post this, but i neither know of other place for this.
I am trying to make a game in construct 2, and the game design is going well, the problem I have is when I try to make the enemy inteligence.
Is kind of a top-down shooter, so I want the enemies to run around, and shoot to the player when is appropriate. I made some attempts, but the results are very random, and depends how i configure, is too easy or to hard, but i cant find a middle point. Anyone knows where i can find a tutorial to learn, or a way to do it?
Thanks.
B
16
S
3
G
6
Posts: 19
Reputation: 3,204

Post » Fri Dec 09, 2011 7:08 am

You can check distance between palyer and enemy. If dictance is to a certain rang you can turn the enemy and shoot at the end of turning.
You can you a basic tutorial from contruct. In this shooter the player turn to the mouse position. This technique you can use i supose.
B
31
S
8
G
6
Posts: 29
Reputation: 6,718

Post » Fri Dec 09, 2011 8:12 am

It really depends on your overall gameplay. There's no such thing as an univeral AI tutorial. Just some pointers and example. But you seem to have reach a state where you already have a working AI you just don't manage find the proper balance (that's what I understood reading you).
So basically you should share your capx to have some input that fits your game. If you don't want to share all your work, try too replicate your basic mecanism in another capx and share it.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Dec 13, 2011 3:22 pm

Sorry for the delay, my internet has been down since friday.
Here is a .capx showing the progress till now. I hope it works. You need the OR plugin (BTW thanks Wastrel for it) http://www.scirra.com/forum/plugin-or_topic47046.html

CAPX: http://dl.dropbox.com/u/23880596/ia.capx

Thanks for reading this, and any advice is wellcome. Bye.arandaschimpf2011-12-13 15:23:28
B
16
S
3
G
6
Posts: 19
Reputation: 3,204

Post » Tue Dec 13, 2011 9:51 pm

There are many different parts to AI. Movement and shooting, for example. Running around, you need to think about how they will avoid walls. Do they run towards you? or to a random coordinate?

You need to think of all these things, and because of the differencences in AI, it is very hard for someone to help much without very thorough description of what they need to do.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to How do I....?

Who is online

Users browsing this forum: Ethan, makkancs, Marxally, Naightwolf, pierre244 and 17 guests