- Sun 11 Mar 2018, 13:04
Thank you for the swift reply, Lizard-13!
Actually, I haven't used any behaviors. I tried using the All Objects>Angle>All rotate actions along with a variable that only determine if the swinging arm is past a certain angle (if angle >= 45, then var swinging_left = 1) or something like that. Then after that, it will swing in the opposite direction. Maybe a windshield wiper is a more suited example rather than a pendulum.
The gist is that I'm trying to make a walking character without pre-made sprites for animation. The reason being is that I want to attach weapons with particle effects to the hand or at the end of the arm. Kind of like a ragdoll/paper doll with programmed animations. I just couldn't figure out the windshield wiper motion while a key is pressed. I might also need to flip the whole thing when facing the opposite direction.
P.S. I also tried using a collision object when the arm touches it along with a variable but it still doesn't work. Also, kindly disregard the WASD movement. Just a simple left right, platformer type movement with jumping.