newbie actor collision question

Game Editor comments and discussion.

newbie actor collision question

Postby shady7twenty4 » Fri Nov 25, 2005 5:32 pm

i have two actors i want actor 1 to be destroyed when it has a collision with actor 2 when actor 2 has a certin animation and when actor 2 has a diffrent animation i want actor 1 to be destroyed upon collision right now my actor 1 is destroyed updon collison of actor 2 with any animation please help or atleast let me know if that makes sense
~~shady~~
shady7twenty4
 
Posts: 10
Joined: Fri Nov 25, 2005 3:53 pm
Location: pa
Score: 0 Give a positive score

Postby makslane » Fri Nov 25, 2005 9:37 pm

In the Collision event between actor1 and actor2,
Put a script like this:

Code: Select all
if(actor2.animindex == 2) //2 depends of your animation
{
    DestroyActor("Actor2");
}


Or, more generic:

Code: Select all
if(collide.animindex == 2) //2 depends of your animation
{
    DestroyActor("Collide Actor");
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby shady7twenty4 » Sat Nov 26, 2005 5:49 pm

not working where you put depends of your animation do i put the name of the animation or wat
~~shady~~
shady7twenty4
 
Posts: 10
Joined: Fri Nov 25, 2005 3:53 pm
Location: pa
Score: 0 Give a positive score

Postby Game A Gogo » Sat Nov 26, 2005 7:10 pm

you put the number of the animation, 0 is the firts animation 3 is the fourth animation, ect...

you get it??
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby shady7twenty4 » Sat Nov 26, 2005 9:11 pm

ok i figured it out i didnt know the animations had numbers thanks but i will post with more qs later
~~shady~~
shady7twenty4
 
Posts: 10
Joined: Fri Nov 25, 2005 3:53 pm
Location: pa
Score: 0 Give a positive score

Postby makslane » Sun Nov 27, 2005 12:00 am

makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest