I'm working on a fighting engine and I have already searched and see that there are some already made (with GM not 2DFM or MUGEN), but even if I used these engines the problems I am having would still happen.
Right now my character moves left,right, jumps and ducks. Problem is when he jumps and lands there is a split second as the falling sprite hits the ground where he changes to standing and slides down the rest of the way. I thought of moving the collision area, the problem is it effected the rest of the sprites in the image making it so that when I he lands he ends up landing slightly inside the floor making it impossible to move once it changes to the normal standing position. What weird is slowing it down I come to realize it doesn't at all look like the tip of his foot is hitting the floor and I know for a fact that there is no extra pixels under his foot. I think its just changing as soon as it hits on that frame though. Along with this is the problem that as soon as it makes contact I can jump again which throws off the animation I guess I could add a check for a variable that's made when the falling object collides with the floor to tell it it just landed. The next problem I am having is with ducking. Right now I want it to play the animation of the object then loop through the last 4 frames, the first frame is just a transition sprite. It's almost a duck idle animation. Should I just make a separate object for transition animations?
I was using the follow code to attempt this using this post as a reference: http://gmc.yoyogames...howtopic=500567
if (keyboard_check_pressed(vk_down))
{
if (image_index = 8) || (image_index < 3)
{
image_index = 3
image_speed = 1
}
}
Edited by Bakuryu, 27 February 2012 - 09:33 PM.











