How do I do enemy's who shoot on sight?

Get help using Construct 2

Post » Sun Feb 08, 2015 7:52 pm

so am making a platformer game like megaman (in gameplay) but how would i make it so when a enemy sprite is facing to the left he dosent start shooting the player who is at the right of him
B
7
S
1
Posts: 14
Reputation: 407

Post » Sun Feb 08, 2015 11:16 pm

The Behavior you're looking for is Line of Sight: I've attached an example of sprites that use it.
You do not have the required permissions to view the files attached to this post.
B
11
S
4
Posts: 152
Reputation: 1,236

Post » Mon Feb 09, 2015 12:06 am

Unnatural20 wrote:The Behavior you're looking for is Line of Sight: I've attached an example of sprites that use it.


i cant open your file it says its on a older copy of construct 2 as am on 19.5 and that copy 19.2

but i tryed los and when i am behind him he can see me
B
7
S
1
Posts: 14
Reputation: 407

Post » Mon Feb 09, 2015 1:56 am

@Jenssons Line Of Sight is a behavior with multiple attributes. Obstacles, Range, Collisions, and Cone of view.
You have to set Cone of View to less than 180 for it not to be able to see behind itself, and I would recommend 90.

Also, I'm using the most recent edition of Construct 2: 196.2; you're using stable release 195, which is the older copy. You won't have a lot of luck opening .capx files on this forum unless you're willing to update to the beta releases. https://www.scirra.com/construct2/releases
B
11
S
4
Posts: 152
Reputation: 1,236


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 9 guests