Need help with sprite animation
-
So I made a bow sprite I want the stro g to be pulled back and the return to normal every time I press a!
-
I should be clear want the string to stretch when I press a
-
Like you want the animation to run every time you press a?
-
@LinkCraft yes
-
@poof92 it depends on the way you'v set up your animations and buttons,but the way i would do it is when A is pressed and held the string gets pulled back
then i'd have when A released it would fire if this is what your after and need help implementing it im happy to help you set it up -
@waldron Yeah I'd like that thanks.
-
@poof92 cool il set something up and share it as an example give me 10 minutes :)
-
@poof92 ok done iv set it up in a very simple way using sprite properties if you want me to add anything to the project to help give me a shout, i can submit it or do you want my friend code so i can share straight away either is fine with me ?
-
@poof92 iv submitted it (for p92) code;N2EUVMND5U
if c.zl then setspriteanimmation(plr,1,1,0) else setspriteanimmation(plr,0,0,0) endif
this is a simple way of doing it usually making a state engine for animations is best but for fast results this doe's the job. -
@waldron Cool thanks I'll check it out!