Working on better understanding the code needed to spawn monsters
2006-11-15 Working on better understanding the code needed to spawn monsters
Currently looking at the code for the SP framework v2 from Frag House Interactive
Class A_MonsterSpawnAtStart extends SPActors placeable;
This class is placable in the level and spawns a monster when PostBeginPlay() is called.
By default it creates a pawn of MonsterClass=Class'Skaarj' with MonsterHealth=0 (0 just makes it be the default health).
Class A_TriggeredMonsterSpawn extends SPActors placeable;
This class is placable in the level and spawns a monster when Trigger(Actor Other, Pawn EventInstigator) is called.
There are also triggered spawns for Actors, DynamicLights, and Tentacles in the SP framework.
Monster Classes (ported in SPFrame from Unreal SP game):
Conclusion: Spawning monsters doesn't look like it will be very hard at all. The classes the SP framework uses to do this are very simple. =) Maybe I can finish this, make a pic with graphics for all the monsters, then figure out how we'll make the player aim and how to keep the monsters playing in 2D.
Currently looking at the code for the SP framework v2 from Frag House Interactive
Class A_MonsterSpawnAtStart extends SPActors placeable;
This class is placable in the level and spawns a monster when PostBeginPlay() is called.
By default it creates a pawn of MonsterClass=Class'Skaarj' with MonsterHealth=0 (0 just makes it be the default health).
Class A_TriggeredMonsterSpawn extends SPActors placeable;
This class is placable in the level and spawns a monster when Trigger(Actor Other, Pawn EventInstigator) is called.
There are also triggered spawns for Actors, DynamicLights, and Tentacles in the SP framework.
Monster Classes (ported in SPFrame from Unreal SP game):
Behemoth | Krall | Skaarj |
Brute | Manta | SkaarjAssassin |
CaveManta | MechanicalSpider | SkaarjLord |
EliteKrall | Mercenary | Slith |
FireSkaarj | Nali | Sniper |
FireTitan | Nalicow | Tentacle |
FireTitan_Ammo | NaliRabbit | Titan |
FireTitan_Fireball | Officer | Trooper |
FriendlyBase | Pupae | Warlord |
Gasbag | Queen | Zombie |
IceSkaarj | Razorfly |
Conclusion: Spawning monsters doesn't look like it will be very hard at all. The classes the SP framework uses to do this are very simple. =) Maybe I can finish this, make a pic with graphics for all the monsters, then figure out how we'll make the player aim and how to keep the monsters playing in 2D.
0 Comments:
Post a Comment
<< Home