I'm working on an NES style Castlevania-ish game. I'm making good progress so far, but I've hit a bug. Because of the way everything is set up, the character freezes when you attack on stairs. I've managed to add/change some things to help make it better, but I haven't been able to squash the bug completely. I've run out of ideas on how to fix it and it's too big of an issue for me to ignore and skip past it. I took everything related to it and threw it into it's own application for people to look at. The controls are Z-jump, X-attack, left/right-move, up/down-move onto stairs and move up and down them.
Here's the specifics. In the first Castlevania, you can't move while attacking. I added that in. When you're on stairs, if press/hold down either left or right, you'll move in 8 pixel steps. I found a file that had these kind of stairs, so I added them in. The way these are set up is there are two values, Up and Down. If you move up stairs, Up will be set to 8 and you'll move up the stairs. When Up hits 0, you stop moving. The same applies for Down. Both values work on left and right facing stairs. In the code I originally had it set up so that if Up or Down were between certain values, it would change the player's animations accordingly. Of course this meant that if you attacked, and because an animation was locked onto a specific frame, the attack animation wouldn't play. Since you can't move while attacking, you were stuck on the stairs with almost no ability to move (except you could still crouch). I added in various checks to help prevent this. At first this bug would happen anywhere on the stairs. Then it would only happen if Up or Down were different then 0, or you were between steps. Now when you're moving down, you can swing your sword all willy-nilly and never get stuck. However if you move up stairs, and if Up is different than 0 (or you're between steps) then you'll get locked up again.
As I said, I've run out of ideas on how to fix this. I'm pretty familiar with Clickteam Fusion and can make a functional game with it, but honestly this is the farthest I've gotten with any project I've worked on and I'm not very familiar with the quirks of animations in Clickteam. If there's anybody that could take a look at this and help me out, please do. I would GREATLY appreciate it.