Function help needed

Non-platform specific questions.

Function help needed

Postby duracel92 » Sat Jul 01, 2006 12:11 pm

I'd just like to know how the function, animindex would help making combat scenario's. I read something like using the code to make only 1 animation 'do damage' to another actor...?
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score

Postby Just4Fun » Sat Jul 01, 2006 5:27 pm

This may help you understand animindex:

Use animindex(count from 0) to find the actual animation of your actor. Each animation that an actor has has a unique index assigned to it. ( This way you can tell which animation is currently running. )
If your actor has 3 animations, then:
The first animation has animindex = 0
The second animation has animindex = 1
The third animation has animindex = 2
This variable is read only.


How would this help you design a combat senario?

Hmm, I suppose that you could change your animations based on collisions or something like that.

There are quite a few posts in the forum on animindex. You might want to search and see if any of the topics apply to what you are trying to do. HTHs... :wink:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby duracel92 » Sat Jul 01, 2006 7:11 pm

The plan was to use the function to make only 1 or 2 frames in 1 animation - based on a collision event - decerease a 'health' variable on the opposing actor.
duracel92
 
Posts: 132
Joined: Sat Jan 21, 2006 10:45 pm
Location: UK
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest