Taking a break from game number 4 to work on game 5. I know I know, why not finish game 4 first. Because Ludum Dare is this weekend and I’m participating in it by attempting game number 5… In any case I’m having a problem with my code. My non-player character entity is not showing up. Here I’ll show you —
If you hit ‘`’ (tilde) it will show up wireframe of all the entities. You’ll see the ghost entity right there.
Okay I finally got it sorted out, apparently it was setting null as the graphic, which means I either need to call AddGraphic or call super after I’ve created my image. It took 3 hours but I finally managed to get this patrol code working. Not all that different from what I did in pursuit, except now I can add commands at the beginning consisting of a direction a speed and a distance (or just a number for wait time if it’s a wait command).