Try this on for size… of course I might add a tweaked version with a better level layout, but this is pretty much complete enough for me to expand it in 2012. Avoid the pursuer.
Archive for December, 2011
Finally got the crusher obstacles. There’s a small issue where you can probably run through them from the sides, however stopping collisions from the sides and yet still registering a “crush” is kind of a pain, I might implement it later when I expand it into the full month, but right now this will do. I still have the chaser to add so it’s really deadly then I can concentrate on game number 5
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).