Sean Catherine
Member
I'm gonna set up the question here:
Say you have a "top down" game with a total of 5 rooms each sized at 4000x4000 (arbitrary size)...
Imagine looking down on some grand map, seeing that the rooms are situated like the following:
Room#1 is in the center, and rooms #2, #3, #4, #5 are next to each of the 4 sides of room#1 (#2 is North, #3 is East, #4 is South, and #5 is West)...
Let's say the player character is at "x 30 y 5" in room#1 and I want him to transition to room#2 with the same x coordinate, but have the appropriate y coordinate for wherever would be the "bottom of room#2..."
Question: Is there a simple way to program this... I want to travel from the top of a room to the bottom of the next, and I want to travel from the far left side of a room to the far right side of the room "West" of that room, and so on.
My sense is that there would most likely be a total of 8 scripts/ pieces of programming?
How hard is this? It's gotta be common, I would think... Keep in mind that I would want the player to land precisely in the location of the destination room in alignment with the location of the starting room...
BTW, I'm not asking for code; I just want to know that this is doable, instead of making a ton of warp objects lining the parameters of every room. thx, and I really appreciate the help and responses I've received over the past few years...
Say you have a "top down" game with a total of 5 rooms each sized at 4000x4000 (arbitrary size)...
Imagine looking down on some grand map, seeing that the rooms are situated like the following:
Room#1 is in the center, and rooms #2, #3, #4, #5 are next to each of the 4 sides of room#1 (#2 is North, #3 is East, #4 is South, and #5 is West)...
Let's say the player character is at "x 30 y 5" in room#1 and I want him to transition to room#2 with the same x coordinate, but have the appropriate y coordinate for wherever would be the "bottom of room#2..."
Question: Is there a simple way to program this... I want to travel from the top of a room to the bottom of the next, and I want to travel from the far left side of a room to the far right side of the room "West" of that room, and so on.
My sense is that there would most likely be a total of 8 scripts/ pieces of programming?
How hard is this? It's gotta be common, I would think... Keep in mind that I would want the player to land precisely in the location of the destination room in alignment with the location of the starting room...
BTW, I'm not asking for code; I just want to know that this is doable, instead of making a ton of warp objects lining the parameters of every room. thx, and I really appreciate the help and responses I've received over the past few years...