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

Zethian

Villager
Member
Joined
May 2, 2014
Messages
9
Reaction score
0
First Language
English
Primarily Uses
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.
 

The Prince of Sarcasm

Prince of sarcasm
Veteran
Joined
Apr 3, 2014
Messages
1,144
Reaction score
131
First Language
Sarcasm
Primarily Uses
I can't help you but your picture looks nice. I can't wait to see it when you are finished
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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.
 

Hollow

(◡‿◡✿)
Veteran
Joined
Jul 14, 2012
Messages
519
Reaction score
439
First Language
English
Primarily Uses
RMMV
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).
 

Liak

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,788
Reaction score
270
First Language
German
Primarily Uses
"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. ;)
 
Last edited by a moderator:

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
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.
 

Mouser

Veteran
Veteran
Joined
Aug 19, 2012
Messages
1,245
Reaction score
264
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top