Get animindex of Collide Actor?!

Talk about making games.

Get animindex of Collide Actor?!

Postby Rufus 01 » Tue Sep 20, 2011 12:35 pm

Hi Guys,

like in the Headline of this thread, I don't know how I can get the animindex of the Collide Actor.
The Problem is, I think I can't use Variables because I have a lot of cloned actors (450). :roll:

Any Ideas?! Would be great if anyone could help me :wink:
Was geht'n? =D
Rufus 01
 
Posts: 73
Joined: Sun Aug 27, 2006 9:51 am
Location: Lisbon, Portugal
Score: 3 Give a positive score

Re: Get animindex of Collide Actor?!

Postby Jagmaster » Tue Sep 20, 2011 12:56 pm

I don't think it matters how many clones you have. You can use variables. Just keep in mind, they are not magic numbers.

You'll want an actor variable if you want multiple actors using this event and each one having their own value, or global if you want one value for the actors to use.

First create your variable.

On collision of actor to be checked.
Code: Select all
variable=collide.animindex;

That should do it.

I'm pretty sure you can't collide on anything other than collision events.
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Get animindex of Collide Actor?!

Postby Rufus 01 » Tue Sep 20, 2011 1:00 pm

Ohhh f, this was to easy :mrgreen:
I try it, I will give u the feedback in a few minutes :wink:
Was geht'n? =D
Rufus 01
 
Posts: 73
Joined: Sun Aug 27, 2006 9:51 am
Location: Lisbon, Portugal
Score: 3 Give a positive score

Re: Get animindex of Collide Actor?!

Postby Rufus 01 » Tue Sep 20, 2011 1:02 pm

Okay, thaaaanks it's working fine :lol:
Was geht'n? =D
Rufus 01
 
Posts: 73
Joined: Sun Aug 27, 2006 9:51 am
Location: Lisbon, Portugal
Score: 3 Give a positive score

Re: Get animindex of Collide Actor?!

Postby Jagmaster » Tue Sep 20, 2011 1:06 pm

Glad it worked. :)
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest