fhl41
Member
|
switch between characters
how can i switch between enemy characters so they can use there own animation can someone fix this, it whas a switch for sound but its not working for character
if(time_to_attack<=0)
{
switch(type)
{
case CHR_GOBLIN : attackLeftHand2(); break;
case CHR_HUMAN : attackLeftHand(); break;
//time_to_attack=RandomF(0.8, 1.2);
}
|
|
07-13-2016 11:00 PM |
|
RedcrowProd
Member
|
RE: switch between characters
you would need to tell use a little more about this and with more details.
what is wrong with that code ? is it not building ? or something else like never entering the second case ?
have you checked that type can be of type CHR_HUMAN ?
( this is an enum, there for using int 1,2,3...)
you're talking about sounds then animation ?
|
|
07-13-2016 11:31 PM |
|
fhl41
Member
|
RE: switch between characters
its working now i made a new project a fresh install and its working thanks for helping
|
|
07-14-2016 10:36 AM |
|