Stairs script

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
Alk
Red Slime
Posts: 40
Joined: Fri Apr 22, 2011 6:40 pm

Stairs script

Post by Alk »

My issue is that I want to have characters go up stairs smoothly like the ones in the ff6 or later snes games. Is there a way I could script it so that the character would be able to move smoothly up and down it without offsetting the characters position upon reaching the top or bottom of the stairs and the player having full control while moving up and down it or maybe there is an OHR game that already has this function in it?


Image
User avatar
Feenicks
Metal Slime
Posts: 697
Joined: Tue Aug 10, 2010 9:23 pm
Location: ON THE AIR IN THE AIR
Contact:

Post by Feenicks »

Actually, yes!
Sadly if you want to be able to go behind the stairs you're out of luck right now; however, I kinda want to have that functionality as well so I'll see if I can do stuff to make that sort of stuff possible.
Hope this helps!
[Note: you'll want to set up the zones as follows:
1: Like so.
2: Like so.
3: Like so.
4: Over all the tiles you want the stair script to actually work - this is more because I'm lazy with the scripting rather than anything else.
5-7: The same as 1-3, but flipped horizontally.]

EDIT: Oh yeah, I guess I should mention that you might want to change the hero number the script constantly refers to into a 'me'. I was just lazy; sorry.
Last edited by Feenicks on Mon May 16, 2011 7:13 pm, edited 1 time in total.
Post Reply