I have a map, a circle as a player and two rectangles as two enemies. How to make these enemies run randomly in the map?
Develop games in your browser. Powerful, performant & highly capable.
Have you tried searching the Tutorials?
Here is one that may help: https://www.scirra.com/tutorials/308/cloning-the-classics-pacman