How do I Create Platformer Character AI

Just started using Construct 2? Post your questions here

Post » Tue Jan 05, 2016 5:50 pm

I have the main character attacking an enemy but I have NO idea how to make it so that the character goes towards the player while on the platforms, jumping and all. Basically, creating AI that has the same rules the player has to follow (i.e. no flying)
If someone could redirect me to an article (and I have searched for them) or a video that'd be awesome.

Thanks!
B
3
S
1
Posts: 7
Reputation: 339

Post » Tue Jan 05, 2016 8:32 pm

This is a very big question..
Creating enemies that move towards the player is easy, but for the jumping you'd probably need invisible sprites to trigger the jump..
The hardest part would be creating the conditions for the enemy when to do things and when not..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jan 05, 2016 8:45 pm

LittleStain wrote:This is a very big question..
Creating enemies that move towards the player is easy, but for the jumping you'd probably need invisible sprites to trigger the jump..
The hardest part would be creating the conditions for the enemy when to do things and when not..


Do you think I could have the enemy path find to the player and then when he hits invisible sprites at the end of the platforms it would trigger him to jump?
B
3
S
1
Posts: 7
Reputation: 339

Post » Tue Jan 05, 2016 8:48 pm

Seeing this is a platformer, you could probably get very far by just comparing the x-position of the enemy with the player..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests