I've been practicing with a top down shooter, so far I've made something I like and my friends are finding it quite hard (that's the idea).
Every 15 kills I'm giving the player 1 piece of in-game cash and the idea is that once they have 25 cash they can purchase either a turret or a wall.
I followed a turret guide but it was aimed at a turret vs player. I'd like it to shoot the nearest sprite, but there will be more than one. I've tried looking on Google but I can't seem to find what I am looking for so I'm wondering if anyone knows of a tutorial or a way to do this?
I'd also like help with the wall, I'm planning on having a straight line for the wall that a player can place down. But I can't figure out how to rotate an object 90 degress and have it snap to a grid and be placed?