animation collide
Posted: Sun Dec 12, 2010 11:35 am
how to make when an actors animation collide.eg if its animation 1 to 1 it should destroy.not 1 to 2.
if(collide.animindex==animindex)
{
DestroyActor("Event Actor");
DestroyActor("Collide Actor");
}
skydereign wrote:If you are going to use gameEditor, you really should learn by doing it yourself. I've given you the code required to do it, it's really just a matter of copying. If you really don't know how to implement this, then I can implement it, but it's better to ask if you don't understand something and build your game yourself. It takes more effort, but you won't be relying on others in the future. Anyway, I prefer Sky over Ski...
if(collide.r==r && collide.g==g && collide.b==b)
{
DestroyActor("Event Actor");
DestroyActor("Collide Actor");
}