Humble Tales - An indie game developer's journey
  • Blog
  • FREE Sprites
  • Tutorials

Wandering NPCs

5/11/2017

0 Comments

 
Picture
I still haven't started getting deep into the code just yet because I want most of the graphics to be finished so that when I start getting into the code I can devote 100% of my time and focus into it. I did however recently play a bit with the code so that I may start to see a bit of life when I run the game at least, so I started with my NPCs. Basically I have been trying to get the NPCs in the world to randomly wander about. As of now the NPCs wander pretty well, I had some challenges making sure that the animation sequence for the proper movement direction was being displayed. Early on the character would walk correctly in some directions and then start moonwalking, also as time passed they would wander off into the wilderness and I had to slow them down and make their travel distances a lot shorter with a higher chance of standing still over moving. The current issue I have now is to make sure that the NPC won't just walk through the walls and objects. This fisherman is the shop owner so he will need to stay in this store or at least within a distance of the shop, I will have to figure this out. To accompany these additional movements for the NPCs I have a lot of animations do make for all these directions and I might just start making a few animals that can roam the forest like deer, foxes and hares that will use this same code.
0 Comments



Leave a Reply.

    Picture

    Jeffrey

    An aspiring game developer, follow my journey from the beginning

    Archives

    March 2019
    November 2018
    October 2018
    June 2018
    April 2018
    January 2018
    December 2017
    November 2017
    August 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017


    RSS Feed

    Real Time Web Analytics
Powered by Create your own unique website with customizable templates.