
Lets say i want to make a character that the player cant controll walk an certain point on the screen,
lets say the coordinates are: x:300 y: 200 how whould i implement this?
i need to create a function that takes 2 parameters and then sets the character to walk to that point like: walk(300,200);
do i need to look into pathfinding? i really have no idea how to implement this please help

Dont spoonfeed me, tell me how to do things in theory and ill post if im stilling having trouble