Add an NPC
From Shoot Em Up Kit
Uses of NPCs
NPCs can be more than just enemy. They include any items with behaviour that is controlled by AI , such as friendly characters, team-mates, bonus items or moving scenery.
Placing an NPC
To add an NPC to the scene click the NPC icon on the Tools menu and an entity selection window will open.
Select an entity, move it using the mouse and click to place it. To place multiple copies of an entity, hold down [CTRL] while placing.
Use the Gizmos on the toolbar to move, rotate and scale the NPC.
The NPC window will open when an NPC is added or selected. When an NPC is placed, it will have four tabs:
General - sets general NPC properties such as movement and weapons
Weapons - sets up the weapons for the NPC
Actions - sets up actions such as upgrades to be set up when selected events occur
AI - sets up the behaviour of the NPC
All other properties (Model/Sprite, Collisions, Physics, Effects and Tags) will be as set in the Entity Editor for the entity. Changing a property in the Entity Editor will change it for all instances of that entity, for example if the explosion effect when a ship is destroyed is changed in the Entity Editor, the new explosion will be used for all instances of that ship in a game. To jump to the model in the Entity Editor quickly, click the arrow by the Entity in the General Tab.
Display List of NPCs in Level
To get a list of all the NPCs in the level, hold down CTRL when clicking the NPC icon on the Tools menu.