About Store Forum Documentation Contact



Post Reply 
how can i give every melee weapon there own animation
Author Message
fhl41 Offline
Member

Post: #1
how can i give every melee weapon there own animation
how can i give every melee weapon there own animation in rpg 2.0
i am not a programmer but i like rpg 2.0 to make a rpg game, nice hud to select player and of course save game you dont see that allot in game engine samples

//if(Ms.b(1))if(!attack.is() || Ms.bp(1))attackRightHand();
//if(Ms.b(0))if(!attack.is() || Ms.bp(0))attackLeftHand ();

i added this but the attacklefthand is not playing blushing

if(type==ITEM_WEAPON && Contains(name, "Spiked Club"))if(Ms.b(0))if(!attack.is() || Ms.bp(0))attackLeftHand ();

can someone show me how its done if it is possible of course smile
12-02-2016 04:39 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
RE: how can i give every melee weapon there own animation
Of course it is possible just depends on how you do it.

it might be better to add the animation to the weapon if you want every weapon do have its own animations. or have it be decided by its weapon class(eg spears using one set of animations and one handed swords their own and so on).


this should be done inside Player function not inside item
Code:
if(Ms.b(0))if(!attack.is() || Ms.bp(0))
                  {
                     if(inv.slot[SLOT_ARM_L].valid())
                     {
                       if(Contains(inv.slot[SLOT_ARM_L]->name, "Spiked Club") &&  inv.slot[SLOT_ARM_L]->type==ITEM_WEAPON)
                         attackLeftHand ();
                     }
                  }
(This post was last modified: 12-02-2016 05:41 PM by Zervox.)
12-02-2016 05:39 PM
Find all posts by this user Quote this message in a reply
fhl41 Offline
Member

Post: #3
RE: how can i give every melee weapon there own animation
Zervox that is wat i mean it works beautiful
thank you very much now i can add spears animation (are different as sword)
and the world rendering and clouds in rpg 2.0 is very beautiful i can make a nice game out of it grin
12-02-2016 06:28 PM
Find all posts by this user Quote this message in a reply
Post Reply