How to make enemy to track and shoot you

Can anybody help me to mae the character to shoot back (I have failed multiple times)
Here is the code: https://arcade.makecode.com/S51985-84363-70683-34482
I have seen other people with the same problem but they don’t work

(I will credit you when finished)

2 Likes

I can do it.

1 Like

ok thanks

2 Likes

Your welcome and I’ll report when it works.

I need it ASAP I am sorry for any inconvinience

2 Likes

Check out Coder king 3: legends - #411 by Luke I have some enemies which shoot at you and kinda strafe around and those which just follow

1 Like

I’m really sorry this is taking so long it’s just I have other things to do such as collabs and I don’t really understand raycasting. but other than that ok ASAP it is. :rocket:

I don’t really do 3D but hopefully this can be helpful

3 Likes

thanks very much

1 Like

Sorry I couldn’t do 3d.