Updated.

  • For the sake of maintainability, ghost.zh has been split into multiple files. You still only need to import ghost.zh itself; it imports all the others.
  • Drawing has been moved to the global script, so enemies won't disappear when the screen freezes.
  • The multi-FFC functions have been replaced. I kind of hate to do that, but they sucked, and no one was using them, anyway.
  • Directions 8-15 should be handled correctly now.
  • Ghost_Explode has been replaced by Ghost_DeathAnimation. This will allow scripts in which the animation is determined by a misc. attribute to support new animations as they're added.
  • Added functions to suspend and resume ghost.zh scripts.
  • Added functions to find random spawn points.
  • Added functions to simplify reading attributes.
  • Shadows can now be animated.
  • The "Is Flashing" and "Is Flickering" enemy flags work now.


Global scripts will need updated. See the "global" section of ghost.txt or ghost_zh/scripts.zh for the current set of functions.

I was going to redo movement this time, but it's taking longer than I expected. I'll be sure to get that next time.