PDA

View Full Version : Why do we need to make a ghosted npc when we want to make a custom boss?



lucas92
10-26-2008, 09:29 PM
Alright, I'm referring to this script:

http://www.armageddongames.net/forums/showthread.php?t=99098

Why do we need the npc pointer? Couldn't we just use only a ffc pointer? I don't get it... :(

How is it easier to work with an npc than a ffc? Is there something that you cannot do when you're not using a npc pointer? How is it better to use an npc pointer?

Elmensajero
10-26-2008, 11:52 PM
FFC's are very easy to control movement wise, but npc's have built-in parameters like HP, damage dealt to Link by touching him, what enemy weapon the npc can use, how much damage the weapon does, etc., that ffc's do not have. The all-purpose custom enemy script linked to above uses ffc's to control pretty much everything, but the npc is used because the script utilizes the game engine to assist with determining when Link is attacking the enemy. If you wanted to only use ffc's, you could, but it would be a pain keeping track of all the lweapons on the screen and determining when the hp of the ffc should decrease. Hope that helped!

lucas92
10-27-2008, 07:11 PM
Yep that helped a lot. Thank you. :)