Simple Enemy AI Movement for Construct 2


Simple Enemy AI for Construct 2

create a Two instance name them hero and enemy

add platform behaviour to the hero character  . Go to event Sheet

 

Add event > system > Compare two values

simple Ai movement

 

Add hero.X less than enemy.X – click done

simple Ai movement

 

go to action > enemy > set the X value – self.X-2

this will cause player to move in left direction

do it reverse for right movement

simple Ai movement

Leave a Reply