How do I Create Enemys

Get help using Construct 2

Post » Sat Nov 01, 2014 7:43 pm

Hello ,
I almost done kind of 2d shooter and i would like to create a enemy that stays and whene i'm in front of him to shoot bulets.
Anyone created ?
i have the character with the gun.
what do i do next?
Thanks a lot!
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Sat Nov 01, 2014 9:40 pm

Easiest way to do this is to use the turret behavior:

https://www.scirra.com/manual/152/turret
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sun Nov 02, 2014 12:06 am

Just make invisible sprite and pin it to the enemy and when the player overlap the sprite set the enemy to shoot.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Nov 02, 2014 12:32 am

Also you can preview the "Turret Defense" example inside C2.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Nov 02, 2014 8:36 am

OK , Thank You i will try today
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Sun Nov 02, 2014 9:09 am

OK, so i did the Turret But it Shoots in the enemy , and i dont know why but i cant make the player look after the main character it looks only in one direction.
Anyone can show me how can i do this ? :?:
Last edited by Radulepy on Sun Nov 02, 2014 2:05 pm, edited 1 time in total.
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Sun Nov 02, 2014 9:29 am

You can compare the enemy position with the main character position on the X axis.
You do not have the required permissions to view the files attached to this post.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sun Nov 02, 2014 1:06 pm

Thank You man , Now i know :)
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Sun Nov 02, 2014 1:15 pm

Also - search the tutorials - There is a lot of great information there.
B
11
S
2
Posts: 46
Reputation: 739

Post » Sun Nov 02, 2014 2:05 pm

Yes, Thank you
B
11
S
3
Posts: 277
Reputation: 1,395


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests