I’m working on developing a top down 2D game set on relatively small (screen sized 16x12) tile based map.
I’ve sorted out building a nice tile based grid.
I have a solution I’m pleased with to move my PC by shifting x and y location based on user input.
The challenge I’m facing now is that I don’t know how to approach NPC movement.
Does anyone have any advice on how to do this?
I’ve been able to generate pathing info using the Jumper pathing library (in community code). This generates a table of x,y coordinates that I can reference.
How would you move NPCs about this grid that I’ve set up? Would a person use the transition.to functionality or a pixel by pixel approach (as I’ve done with my PC)? Is there some other technique I’m missing entirely? I’m not using gravity since the perspective is top down but I do have my PC and NPCs set with physics properties if that is a consideration.
I’ve been “rocking and rolling” on this effort but have hit a wall in trying to figure this out… Thanks in advance for any help [import]uid: 105707 topic_id: 28133 reply_id: 328133[/import]