There is too little detail here to give a qualified answer. How old? How many miles? Service history? is there oil in the engine? Is there the right amount? Is the tapping a light or heavy metallic noise? Is it from the top of the engine? The back or front?
Without hearing it, it is very difficult to tell you. If you got it cheap in a private sale, POSSIBLY:- gudgeon pin (small end), cam follower, timing belt tensioner failure, alternator belt tensioner failure.
Best take it to a good local garage for an opinion. Shouldn't cost you anything.