Page 1 of 1

Boss with destructable parts?

Posted: Fri Apr 14, 2006 3:55 pm
by mordercinstinkt
Hey there!

I'm creating an action/platform Sonic Adventure sort of style game. I'll use Sonic as an example. In those games, there are big bosses which are robotic and have destructable parts on them. You can blow one cannon off, but not kill the whole thing.

I was wondering how I could go about doing that, and how I would tie those parts to the main body, and how I could make the boss utilize the parts on him, but know when they're gone and not try to use them anymore resulting in it just standing there and getting killed.

Hopefully I described this clearly enough. Thanks for ANY help I get. :-D

Posted: Fri Apr 14, 2006 4:33 pm
by AndyCR
Hey!

I would do it like this. Make each cannon/etc a seperate Pawn that if it is not dead always reattaches itself to the boss (so it appears to be part of it). The boss can tell the cannon to fire, i do believe, by using it's szEntityName set in the editor. It can check if it's dead using a similar method, and if so not use it.

Posted: Fri Apr 14, 2006 5:07 pm
by Cynnical
yea setting it to not use the cannon if its dead is just a simple if then statement (if rf uses if then statements.)