Jump to content

LA-style animal NPCs

Overview
Creator: MoscowModder Added: 30 Apr 2014 Tags: Enemy, FFC
Rating[?]: No rating
View Script
Information

Description Setup Reviews Comments

If you haven't already, assign the autoghost global script to your global script slot or combine it with your existing scripts.

Create each animal in the enemy editor as a Walking Enemy, and set up its attributes as follows:
Type: Walking enemy
Animation and sprite: Whatever you want; these are used for the NPC
HP: Must be at least 1, even if it can't take damage
Step speed: How fast to move
3 = Death Attr 1: How high to jump (1-2 is a good value)
4 = Death Attr 2: How long to stand still (in frames)
5 = Death Attr 3: How long to move (ditto)
6 = Extra shots: Collision detection (0: intangible; 1: deals damage and can be killed)
11 = MUST BE equal to GH_INVISIBLE_COMBO in ghost.zh
12 = Script slot number (check as you're assigning this to an FFC slot)

Once setup is complete, animals can be placed like regular enemies.

Requires ghost.zh, string.zh, and std.zh.