Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can I make a possible accurate aim at enemy?
- Lily_the_Eevee
-
Scratcher
9 posts
How can I make a possible accurate aim at enemy?
Hello, I am making a weapon that the player can use to aim at a enemy to kill it. I attempted to make a point towards script for the closest clone, and it doesn't look right lol.
What I am specifically doing for this is aiming at the closest enemy clone. and it will do firing.
https://scratch.mit.edu/projects/1119312641/
What I am specifically doing for this is aiming at the closest enemy clone. and it will do firing.
https://scratch.mit.edu/projects/1119312641/
- DragonPlusMaster
-
Scratcher
100+ posts
How can I make a possible accurate aim at enemy?
Have all the clones list their x and y positions on a list. Then, I'm pretty sure you can use this tutorial for a “point towards x y” block.
- Norse7
-
Scratcher
100+ posts
How can I make a possible accurate aim at enemy?
You could list out the distances and the sprites using the 
(distance to [ v])block, then loop through them and point towards the closest one. Sorry, kind of hard to explain.

- Discussion Forums
- » Help with Scripts
-
» How can I make a possible accurate aim at enemy?


