weapon drawing:
I could make the Weapons for you!
weapon equiping:
make a variable(integer) called Select.
on the event that triggers the weapon change(example, the 1 button.)
- Code: Select all
Select = 0;
when the 2 button is pressed,
- Code: Select all
Select = 1;
ect.
on the draw actor event of your Gun actor(make is seperate from the player.)
- Code: Select all
if(Select == 0)ChangeAnimation("Event Actor", "Gun_1", FORWARD);
if(Select == 1)ChangeAnimation("Event Actor", "Gun_2", FORWARD);
//ect.
or for a Side Scroller make an extra variable called dir(integer).
when the player presses the left key(repeated) dir = 0;
when the player presses the right key(repeated) dir = 1;
and on the draw actor event of the Gun,
- Code: Select all
if(Select == 0) {
if(dir == 0)ChangeAnimation("Event Actor", "Gun_1left", FORWARD);
if(dir == 1)ChangeAnimation("Event Actor", "Gun_1right", FORWARD);
if(Select == 1) {
if(dir == 0)ChangeAnimation("Event Actor", "Gun_2right", FORWARD);
if(dir == 1)ChangeAnimation("Event Actor", "Gun_2left", FORWARD);
}
//ect.
if that does not help I will make a Demo.