Enemy AI help

Get help using Construct 2

Post » Sun Nov 25, 2012 9:15 pm

hello ive been having some truble trying to make make my enemy ninja detect my ninja on the diffrent platforms so im on one and i want him to come to me ive tryed everything i can think of but when he is on the same Y co-ordanate he just does some mad spins ! any help with this at all would be much loved ! , thanks

http://dl.dropbox.com/u/59126863/project/Troy.capx - project file SplashyTardster2012-11-25 23:07:54
B
4
Posts: 5
Reputation: 435

Post » Sun Nov 25, 2012 9:50 pm

hi.
1st make a single capx file ,not a caproj file.
2nd You can create this type of ai by using a dummy sprite to detect your player sprite.So ,when the player sprite overlaps the dummy sprite ,you can set your enemy sprite to move towards your player sprite.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sun Nov 25, 2012 11:10 pm

thank you for replying, but i don't quite understand use a dummy sprite ??
also made it a single file . did i explain what i wanted help with proper ill try again :) say if im on one platform and an enemy is on the floor how can i make him navigate his way up though the platform system to find me ??? i think i explained it better there :D
B
4
Posts: 5
Reputation: 435

Post » Mon Nov 26, 2012 4:21 am

That's some pretty advanced AI for an platforming enemy. First of all, you need to set some conditions for the enemy to know when to go up or down. Then, you need to do some sort of intelligent chase for the enemy on the player. Practically, that's pathfinding but for a platform game, where you need to specify various heuristic costs for each obstacle like ladders and stuff.
B
7
Posts: 38
Reputation: 683

Post » Mon Nov 26, 2012 3:33 pm

do you have any idea how i could go about making the path finding system for a platformer ?? and thanks for replying !
B
4
Posts: 5
Reputation: 435


Return to How do I....?

Who is online

Users browsing this forum: Asmodean, davides, Walessio and 21 guests