Progress Update #1 : NPC Schedules


In order for a farming RPG to feel more immersive the NPCs need to have schedules to follow that will move them around the map.   I not only wanted the NPCs of fantasy farm to have daily schedules, but I wanted them to have schedules that changed randomly from day to day.   This turned out to be a real challenge in "game maker studio 2"  (the engine that Fantasy Farm is being built in), because everything in game maker is organized into little areas called "rooms" you can think of a "room" in game maker studio as a level in a video game, or in our case a section of the explorable map.   "Objects" are anything that exist inside of a room, so the player, NPCs, trees, rocks and enemies.  Well when you are not in a room it and all the objects in it become inactive.  So my NPCs suddenly can not keep track of their own schedule.

After several days of trial and error I came up with a system that is a nice work around, and after some fancy mathematics the system is up and working!  The next step is to set up most map areas so I can have NPCs walk to them!

Leave a comment

Log in with itch.io to leave a comment.