I have finished the most basic movement in my project. Since I have all the basics done, I decided to start working on the combat. The first thing I wanted to do is to make sure that animations play properly. Heres the problem: When I have all the animations in place I put in the appropriate events but when I run it, the animations don't play properly or otherwise get stuck.
This is the event:
Event
(Player) is on ground
(Player) Value 'canslash' Equal to 1
(invert)(Player) is moving
Key Enter is down
Action
(Player): Set animation to "Lightsaber"
The object (Player) is the character I'm using. The private variable 'canslash' is activated if it is equal to 1 if not the event won't be executed. The animation "Lightsaber" is the animation name I'm using for the animation.
I tried fiddling around with the frame speed, animation speed, events, etc. But nothing has worked so far. I hope someone can help me solve this problem as I need to get into full development soon.
Heres the cap:Removed
(Note: I created this mock-up in a few minutes using exactly the same events as in my game to show the problem, I ripped the sprites and backgrounds from platform school as I had no time to put in original sprites.)
Thanks.
EDIT: Uploaded version with Lightsaber animations.
EDIT2: The problem has been solved.