Hi im planing a game right now and its going to be similar to dark souls but pixelated 2d and i want to know what are my options.Is it possible to make my player do animation on pressed button only when is near specific object like in Dark souls when the player is near the bone fire he does the hand animation and lights it?
Develop games in your browser. Powerful, performant & highly capable.
Yes
You could do a System: distance(player.X,player.Y,firepit.X,firepit.Y) <= 10 (your distance) then do animation and other actions.