Weapon Select with Character Appearance Change
Author: | dcisgay
|
Submitted: | 3rd January, 2002
|
Views: | 6074
| Rated: |
|
|
This is an article along the same lines as a previous one by Dan C., but with an added feature.
The weapon system here is designed so that your character can appear holding a different weapon, with different aniimations as well. This is not unlike Gunner 3, where even the way the gun is held is changed.
How to do this, you might ask. Well, it's relatively simple. Your actual weapons system will be as follows.
Example List:
Gun 1 - Pistol (Global Value 1)
[Held in character's hand]
Gun 2 - Machine Gun (GV 2)
[Held in both of character's hands]
Gun 3 - Missile Launcher (GV 3)
[Supported on character's shoulder]
...the weapons system can work as described in <a href="http://www.x-rate.gr/dc2/article_page.asp?id=19">Dan C.'s excellent article</a> with one added aspect.
To make the character's appearance and animations change with different weapons, a simple trick can be used. Create multiple copies of your character, each with different weapons (and animations), and different action points for shooting the chosen projectiles from different positions depending on the position of the character's weapon (shoulder, hand, etc.). Instead of having all the events related to the character be connected in the event editor like "Steve hits wall" - Create a group containing all of the main character's variations with weapons. Make all events related to the main character (except the SHOOTING events) using this group. To ensure that the variations stay together, make them all stay at another variation's position, so they'll all be in the same spot at all times. The events should now read like so - "Group Steve hits wall". Now, to make the character change appearance when he holsters a new weapon simply say that when the character has 'Weapon 1' out, make all the character variations invisible except for the one with the character holding 'Weapon 1'. Do this for each weapon in turn, making seperate side events for each weapon's actual shooting sequences.
See, it was pretty simple really!
I hope this will make the future klik 'Gunner 3's more numerous.
Good Luck!
|
|
dcisgay
Registered 02/01/2002
Points 115
|