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!
Easiest way to do this is to use the turret behavior:
https://www.scirra.com/manual/152/turret
Just make invisible sprite and pin it to the enemy and when the player overlap the sprite set the enemy to shoot.
Also you can preview the "Turret Defense" example inside C2.
Develop games in your browser. Powerful, performant & highly capable.
OK , Thank You i will try today
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 ?
You can compare the enemy position with the main character position on the X axis.
Thank You man , Now i know
Also - search the tutorials - There is a lot of great information there.
Yes, Thank you