Disclaimer: I am in no way a pro in c++ nor in sfml, Only sucessful game i made was snakes. and that was a bare minimum game...T-T
I wonder if this works....
https://github.com/theonekami/Towerdefence/tree/towerOk so i have here a simple engine for tower defence. It's under construction, and i hope you don't have to read through the entire thing
I have two functions for calling the creeps and adding the towers.
both of them run in the main loop. The creep function updates as the time goes on...
Now the problem here is when i add a tower. It works fine but when the mouse is not moving the creep just stops animating. and when i move the mouse then the creep moves forward
Please any help is appreciated. Honestly i have no idea on how to do this..