how to make a enemy shoot a player in a platformer

Get help using Construct 2

Post » Mon Apr 29, 2013 11:55 am

Hi i am making a game in which i wants to make the enemy shoot at player if it comes in range of it.
can someone please me!!!!!!!!!!!
B
3
Posts: 30
Reputation: 660

Post » Mon Apr 29, 2013 12:20 pm

Game link
https://www.dropbox.com/s/5cvdj1dvl9oe5qh/game.capx?v=0mcng
B
3
Posts: 30
Reputation: 660

Post » Mon Apr 29, 2013 3:11 pm

Welcome to the community. The first step I would recommend is the Tutorials. The first one on the ghost shooter game (beginners tutorial) will cover getting an object to move towards the player. It uses the bullet behavior which is exactly what you want to do with your enemies bullets. In that example the player shoots toward wherever the mouse is pointed. Combining those pieces will give you everything you need to be able to have enemies shoot at you. also, you may want to look at the turret behavior as it has some nice automated ways of setting this up as well.


On a side note, as these are covered in the beginners tutorials and the manual very well, I would recommend doing them as you will get better responses to your questions when it appears you have at least put in some effort to finding the answer before asking on the forums. Not trying to discourage you, but folks respond better when you ask questions that are not answered in the beginners tutorials and manual. It ends up coming across as lazy.
BluePhaze2013-04-29 15:13:24
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Mon Apr 29, 2013 6:37 pm

but i made a platformer game and ghost shooter is a 8 direction based example. You can check in my previous post
yash022013-04-30 03:01:29
B
3
Posts: 30
Reputation: 660


Return to How do I....?

Who is online

Users browsing this forum: Naightwolf and 20 guests