Hello, I've managed to get a base of a 2D game but was wondering how to add A* pathfinding in my game.
A* pathfinding is really simple and well documented. You should be able to find plenty of tutorials if you simply do a search on the internet.
This looks like a good one.
http://www.cokeandcode.com/main/tutorials/path-finding/ (http://www.cokeandcode.com/main/tutorials/path-finding/)