Hello everyone, sorry to bother you all but I am in really desperate need for help on a project that requires me to make a 2D Side-scrolling tower defense game, similar to that of the game Battle Cats by PONOS and I will need help with some components :
1- How do I make a button, that when clicked, spawns an AI that moves with their own pathfinding (I've been able to script an AI that moves with pathfinding but it only works if they're already on the layout and I'm unable to spawn them and then they move because whenever I spawn them they stay static)
2 - How do I implement a budget system that constantly counts up and spawn an AI with a price to deduct that increasing budget?
3 - How do I make the AI move again after interacting? (If one AI encounters another AI and they stop to fight, but after one of them dies, how do I make them continue on their pathfinding to the objective?)
4 - How do I implement a range system where an AI with a ranged weapon encounters an enemy and stops at a range of the enemy to attack?
Thank you all very much, if you are able to help me with at least the first two, I am very grateful to you for saving me.