I need help aiming

can someone code it to where the gun’s always aiming at the other player
gun game

Use sprite utils and an extension which rotates sprites.

jwunderl/arcade-sprite-util
robo-technical-group/pxt-arcade-image-transform
1 Like

what code would I need with these two extensions so that the gun always faces the enemy

This one is my favourite!!! I use it for lots of things like star blast

2 Likes

Sorry im in a time crunch while wrighting this but theres a comment that should explain everything

https://awesome-arcade.vercel.app/ this site is very helpfull when you need a extension

heres the one i used

Don’t use it, the algorithm is much worse than the rotation blocks in the scaling extension by jwunderl

the difference is quite startling

4 Likes

Oh well, it was what I knew at the time. It works all right when you don’t need it to look like the bottom image.