Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8930

Have enemy fire when facing actor?

$
0
0

Hello -

I haven't quite figured out something relatively simple.

  1. I have two actors: an enemy in the center of the screen, and the player actor.
  2. I have the enemy track the player's position (using PlayerX, PlayerY, and Rotate To).
  3. When the enemy faces the player, I want to shoot a bullet. What is the proper syntax for the condition? When Enemy Rotation = ________, Spawn Actor Enemy Bullet.

Is it Enemy Rotation? Is it something different? What goes in the blank space above (#3)?

Thanks, regards.


Viewing all articles
Browse latest Browse all 8930

Trending Articles