This targeting engine allows sprites to check for objects in range and determine which one to point to depending on targeting options. I never completed the priorities thing but it's pretty easy to finish. If you need me to just let me know. This program accounts for the sprite's position. To adjust to the sprite's whole hitbox, just add the size to the detector. Space - Add a dot Hold Number - Move dot (Via cursor) R - Edit arrow's range (Default = 100) P - Change arrow's targeting priorities (Default = 1)
Everything was developed by ThunderGuy77. I'm making the third GeoBlox Tower Defense game using the Scratch engine, and some of the new towers have targeting properties. Therefore, I needed some scripts to take care of it and came up with this. I hope y'all like it. Use it to make your own games - I made it as simple and efficient as I could. Give credit if you want, but if you "forget," that's okay too. ;)