About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
mouse button
Author Message
darkpdx Offline
Member

Post: #1
mouse button
what do to on striking the left key mouse my hero has attacked?
11-13-2010 05:24 PM
Find all posts by this user Quote this message in a reply
Phaelae Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #4
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
Visit this user's website Find all posts by this user Quote this message in a reply
darkpdx Offline
Member

Post: #5
RE: mouse button
thankssmile
11-13-2010 08:21 PM
Find all posts by this user Quote this message in a reply
Post Reply