Game Development Community

DragonActor collision - datablock

by Salamander · in TGB Platformer Kit · 07/04/2009 (7:03 am) · 3 replies

Hi,

I'm trying to modify the collision of the DragonActor to make it taller.
Even if i modify the CollisionPolyList values, the collision always stays the same.

Also, i was wondering if i should modify DragonActorTemplate, DragonTemplate or both to make it work.
So far i tried everything and i don't see any changes.

Any help would be greatly appreciated !

Hugo

#1
07/05/2009 (7:02 am)

I friend told me that the collision bound of the player is hard-coded so that's why i can't modify it directly in the datablock. I currently don't have the pro version of the PSK.

Anyone can confirm this ?

Thanks,

Hugo
#2
07/05/2009 (6:03 pm)
No no, the collision bounds aren't hard coded. You should be able to change the bounds in the DragonActorTemplate:

// Square.
CollisionPolyList = "-1 -1 1 -1 1 1 -1 1";

I would suggest creating a poly in the TGB editor and the copying the values into a list like the above.
#3
07/05/2009 (6:16 pm)
Hi Philip,

Thanks for the support, entering the values in the editor sounds like a good idea !
I'll give it second try, i must have done something wrong playing with the values.

Thanks again, psk is really awesome BTW !

Hugo