How do I platform enemy AI avoidence

Get help using Construct 2

Post » Fri Oct 16, 2015 4:50 am

good morning, i'm attempting to create some simple platform AI.
Each time an enemy's sight overlaps another's I want the enemy to jump/move up and over the collided enemy. I have the following capx which sort of works when the enemies numbers are low but, if I create a ton of them they get stuck.

Left click to create an enemy.
https://www.dropbox.com/s/pj0ktgqugn2qv ... .capx?dl=0

Has anyone got some tips on creating this type of behavior?
Have retro games for sale? Buy & Sell Retro Games UK
B
9
S
2
Posts: 68
Reputation: 768

Post » Fri Oct 16, 2015 5:54 am

how about removing the solid behaviour from the mover - might help them from sticking ? Or do you need them to be solid for some other part of the game ?
also have you looked at simulating a jump key press rather than setting the y vector (although you might need to turn down the jump strength ) ?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Fri Oct 16, 2015 6:19 am

Thanks for the reply, I did try jump and with solids off.

https://www.dropbox.com/s/ul6w1wytrqr6t ... .capx?dl=0

I guess it looks pretty good, they do sometimes other lap, jump while following (i'm sure I could sort this out) but they don't seem to ever get stuck.
Have retro games for sale? Buy & Sell Retro Games UK
B
9
S
2
Posts: 68
Reputation: 768


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests