How do I Make Enemy Shoot at Player (Platform)

Get help using Construct 2

Post » Thu Sep 15, 2016 6:26 pm

Sorry, I know this question has been asked ad nauseam but I can't find one that solves the issue.

For my platform game, I want my enemy to shoot at my player's position. Other posts say spawn the bullet the set bullet angle of motion towards (player.x,player.y) BUT C2 says that's an invalid expression (and rightly so). I can't use turret behavior because I don't want my enemy to rotate. This should be easy to do...heck, games factory had a "shoot at object" event. Maybe I'm overlooking something?
B
9
S
1
Posts: 24
Reputation: 513

Post » Thu Sep 15, 2016 7:09 pm

B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Thu Sep 15, 2016 7:44 pm

Gmoney wrote:Check out this example. :mrgreen:

https://www.dropbox.com/s/ly1yir6ts3hex ... .capx?dl=0


That worked PERFECT! Thanks so much, it's really appreciated!
B
9
S
1
Posts: 24
Reputation: 513

Post » Thu Sep 15, 2016 8:52 pm

You're always welcome, abj84. :mrgreen:
B
11
S
6
G
15
Posts: 256
Reputation: 9,207


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests