frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

AI shooting

Is there a way for an AI to emit a bullet of some sorts toward a player without changing the angle it is facing, like it will shoot toward the player as it moves without turning itself.
Also, if there is a way to have a AI to move toward a player on the grid without using a point-at so it doesn't go upside down, please do tell.
Thank you!

Comments

  • If the emit force is set to a negative number, it will shoot backwards, but you can spawn/emit a bullet that has a once point at to the player.

    For the second one, you can use a timer (repeat forever) - two x extractors (one for itself and the other for the player), both connected to an expression; itself connects to A and the player's connected to B (one of them connected to evaluate), filter greater than 0, pass: -velocity x, fail: positive number velocity x
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch