How do I make enemy shoot at player(Sine wave)

Get help using Construct 2

Post » Thu Jan 05, 2017 12:15 pm

Message: kab can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I have an enemy(fly) that is using the sine behavior. Every 2 seconds i want it to shoot at player(if player is visible).Moreover i want to restrict the enemy moves between 2 barriers.

This is what i tried thus far

https://www.dropbox.com/s/0cicumlzet5v7xh/platformgame.capx?dl=0
B
5
S
1
Posts: 32
Reputation: 389

Post » Thu Jan 05, 2017 4:28 pm

Image

This will fix your fly problem by only allowing it to shoot when it is on-screen, and when a fireball is spawned it will set it's angle to the player.
B
21
S
6
Posts: 21
Reputation: 1,296


Return to How do I....?

Who is online

Users browsing this forum: Liam Twose, rayolf and 16 guests