enemy kicking the player
emoji
Member, BASIC Posts: 66
Hi all, so I have this issue that needs some input. what I want to do is have my enemy punch or kick my player & a few other actions once it is in close distance. I don't know how to do this. I was able to have my enemy punch my player only once
what attribute or other action can I do to have my enmy keep on punching or kicking my player? btw that attribute is distanceToPlayer and vector
Comments
You would use the Magnitude Function to determine the distance between actors, here is a tutorial:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
sorry, I think my question was not well asked. I know the magnitude and vectorToAngle. I just want to know now that all my attribute is meet how can I have my enemy keep on attacking my player. punch, kick...
When attribute = ______
Timer every ___ seconds
Punch
Kick
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User