darkpdx
Member
|
mouse button
what do to on striking the left key mouse my hero has attacked?
|
|
11-13-2010 05:24 PM |
|
Phaelae
Member
|
RE: mouse button
Not sure what you are asking here. Could you explain better what exactly you want to do?
|
|
11-13-2010 07:29 PM |
|
Dandruff
Member
|
RE: mouse button
I'm not sure if this is what you ask for, but if you want your hero to attack(swing) when you press your mouse key, you can play an animation of him punching (it might be in the anim folder) and make it call a function when it hits something.
|
|
11-13-2010 08:09 PM |
|
Dynad
Member
|
RE: mouse button
Well what you can do is take the animation tutorial.. and add the function inside a if statement with a button action.
e.g snippet:
if(Ms.bp(0)))
{
playAnimation("attack1");
}
There is always evil somewhere, you just have to look for it properly.
|
|
11-13-2010 08:16 PM |
|
darkpdx
Member
|
RE: mouse button
thanks
|
|
11-13-2010 08:21 PM |
|