a project i shared for the sole purpose of receiving help with some code in an upcoming game. :eyes_emoji: the problem is that towers are behaving really strangely with their targeting. in this project, when you place a tower before several enemies spawn (ideally from the very moment you click the green flag), the tower targets the first enemy as normal. however, on other occasions (like placing a tower after several enemies have already spawned) the tower will target other enemies, but most often the last one. i’ve left some detector costumes in the enemy sprite in case i’ve missed some steps and they are useful in the code. the towers also twitch sometimes, which can be irritating to look at, but it’s not too big of a problem in the code, i don’t think.
credits to all and credits to abram yusram for some of the code that helped me make this… prototype of a script. (yes i didn’t watch a warfame tutorial or something, i ain’t scripting allat yet) link to the scratch forum for extra details: https://scratch.mit.edu/discuss/topic/859225/