How to make stairs going left/right that move the player diagonally?

● ARCHIVED · READ-ONLY
Started by Zethian 9 posts View original ↗
  1. I'm trying to make stairs that are at a side-on view. I have some tiles that achieve this look, but I cannot figure out how to make the player ascend or descend stairs going horizontally across the map. The tiles for the stairs (for example going up and left) go up one tile for every time they go left one tile. But I don't want to have the player go up stairs by pressing up, left, up, left, up, left... I just want them to be able to hold left and ascend the stairs (or hold right and descend) in a diagonal fashion (see attachment for example).

    cats.jpg

    I'm not sure if I'm overlooking something simple, but I can't figure it out, and so far I haven't found anything by searching. The stairs can't just go across and not go up, which is all I've yet to find examples of, as the rest of the map needs to descend away as there will be another hall at the top of the stairs.
  2. I can't help you but your picture looks nice. I can't wait to see it when you are finished
  3. You'll need a script to do this, moving diagonally is not possible in default.


    You can either use a script for true 8-dir-movement or a stair script that only affects movement on stair tiles.


    Both types of scripts have already been written, but I don't have the links ready, search for them on the master script list.
  4. You could also use a move route to automatically move the player diagonally--though if you want it to seem like regular movement instead of automatic you may have to get creative (or use a script).
  5. "Get creative", yeah. I'm afraid that is exactly what you have to do, since there's no easy way to do it. You may have to use a whole bunch of "On Player Touch" events that contain a "Loop" which checks for a direction button to be pressed. Maybe that will feel sort of laggy, though - you'd have to test it - ... hmmm ... well, you know, if I was to make that sort of thing, I would probably just have ONE event at the foot and the ... head? ... of the stairs that automatically moves the player diagonally across the stairs. That is the fastest and least bug-susceptible way of doing it, in my opinion. :) If that's okay with you?

    EDIT: I think I should add to this that I as a player would be completely fine with that kind of diagonal stairs that move me automatically across themselves. ;)
  6. supertristan00 said:
    I can't help you but your picture looks nice. I can't wait to see it when you are finished
    That's a screenshot from Corpse Party, it's not my game :)
  7. You could also go for the really simple route; have the player step onto a player touch event, that will automatically use a move route to move the player diagonally across the staircase. Do this for the top of the stairs and bottom of the stairs.


    If you're in luck, the player won't even notice their movement is being forced, as they'll probably be holding the arrow keys to the left/right anyway to move, so they think they're doing it themselves.
  8. Personally, I just did the force move route going up left up left - the stairs aren't that long.

    If you can get to look good diagonally - Bonus! I may have to go back and try that.
  9. I wrote a little script for Despain to do that, using either regions or terrain tags to identify the stair tiles where you want this to happen.  I've done a bit of a search but can't find it now.  If you don't have a solution by the time I get home this afternoon, I'll see if I can find it again.