Enemy AI Problem

For questions about using Classic.

Post » Tue Dec 08, 2009 4:58 am

I am making a top down shooter game, where you move the player around, and shoot enemies.

Right now, my enemy AI checks that the distance to the Player is less than 500, and if it is, moves in the direction of the player. My main issue is that the enemy will simply slide through a wall. I have both the wall and the enemy solid in their Attributes, and they are on the same layer. Is there a way to keep the enemy from moving through walls?
B
1
G
3
Posts: 3
Reputation: 831

Post » Tue Dec 08, 2009 5:39 am

Not all the behaviors use the solid attribute. So if your using a behavior that doesn't use it, or a custom movement, you will have to create your own on collision event.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: GameOverBeast and 1 guest