lolKanra
Member
Hi im trying to make an action platformer game where your character can throw knives, now i tried making the animation play every time the left mouse button is pressed down but i seem to be having issues.
When i stand still, the animation only stays on the first frame, it only plays when i walk around while attacking. it also doesnt play when im in the air (even while moving, as shown in the video). im also wondering how i can get it to play the whole animation without being interrupted if you catch my drift, as well as play only once if you pressed the LMB once.
anyway here's the problem and my code, im a beginner and im watching Shaun Spalding's tutorial so please bear with my dirty code lmao. (note: im not spamming the LMB in the clip, im holding it down.)
Note:
[i unlisted video and uploaded it on my yt instead bc gif is too big for forum]
Thanks in advance!!
When i stand still, the animation only stays on the first frame, it only plays when i walk around while attacking. it also doesnt play when im in the air (even while moving, as shown in the video). im also wondering how i can get it to play the whole animation without being interrupted if you catch my drift, as well as play only once if you pressed the LMB once.
anyway here's the problem and my code, im a beginner and im watching Shaun Spalding's tutorial so please bear with my dirty code lmao. (note: im not spamming the LMB in the clip, im holding it down.)
Note:
Thanks in advance!!
Attachments
-
22.6 KB Views: 6