Well the capx appears to be missing some png files (the loading icons and the favicons for the project), this might be an issue in the long run and might cause the javascript issue.
Thanks! I just opened up the caproj, and it gave me a list of them. I didn't realize I was missing them. Is there a way to replace them, or should I start a new project and re-import the assets, to avoid future issues?
As for your problem, simply add a system condition "Else" to events 29 to 31.
It's just a (common) issue of how events work. You press S, the code testes if you're positioned over a "up" stairs, yes ? then it moves the character.
Then it testes is the character positioned over a "down" stairs ? Well, now yes it is since I moved it as a result of my very previous test. So moving the character again, you are under the impression it hasn't moved from the "up" stairs when actually in the same tick, it moved twice.
Adding the "Else" condition allows you to prevent that behavior and the checks to perform as you intend.
Thank you so much. I didn't even think of that. It explains why when he's on an "up stairs" he gets repositioned to the position for the "down stairs." I think I'm doing your fix wrong though. When I go to add "else" to the events, it comes up with red text warning me that '"else" is not valid here', and if I right click and add "else" events inbetween the events it doesn't work. I feel like this is a simple concept I'm not grasping. Haha.
EDIT: Nevermind!! I just had to indent the events properly in order to get this to work. I'm so grateful for your help, thanks!
Just a quick suggestion. Rather than hard-coding the position for the doorways, I would add an extra image point to the doorway and then use the Set Position to Object action. If you have many doors, it can save you lots of time.
Thanks for the tip!
Originally I had it set to the origin just to test to see if it worked, but I tried switching to using the position to see if for some reason those events weren't working because of their being set to the origin.