by goodwin
While learning GML, I made basic but stable top view movement platform that I decided to share.
What it does:
if npc is not moving he constantly faces mouse;
if he is moving, he faces only his movement destination;
if there are enemies not far from his moving path, he automatically changes his movement path towards enemies;
after destroying enemies, npc resumes his path to his destination.
Everything is made using GML and there are in-code explanations, so I think it'll be helpful for everyone like myself who are trying to learn code in GML.
Feel free to modify it to your own needs. No credits required 😉
Tags: movement, top, view, mouse, rpg, platform, example
DownloadReleased | 2010-11-02 |
Category | Other |
Rating | 4.0 (by 1 users) |
Downloads | 122 |
Version | 1 |
ID | 150281 |
Slug | npc-to-mouse-movement-example |