The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: papa marth on March 05, 2006, 02:13:40 AM

Title: Teleport help
Post by: papa marth on March 05, 2006, 02:13:40 AM
On RPG XP it takes forever to create a bunch teleport events on the borders of the map...Is there any way to make the whole border teleport  to the next map...sorta like connecting the maps to one another.  Sorry if this does not make sense, it's kind of hard to describe. :roll:
Title: Teleport help
Post by: RPGPersonell on March 05, 2006, 02:34:11 AM
You could make it so that every time the hero's X var. is = to the bottem or top of the map (same for the left/right sides to just Y var. insted of X), then you teleport somewhere using branches.
Title: Teleport help
Post by: Nightwolf on March 05, 2006, 03:36:48 AM
U can make an event on teleportation and copy-paste it everywhere.
But the problem is that he starts from the 5th block, ends on the first.
Title: Teleport help
Post by: blueXx on March 05, 2006, 06:36:12 AM
Quote from: RPGPersonellYou could make it so that every time the hero's X var. is = to the bottem or top of the map (same for the left/right sides to just Y var. insted of X), then you teleport somewhere using branches.

correct, the event is a parallel process which looks a bit like

heroX= hero X tile
heroY= hero Y tile

if y=0 then
-teleport(upper map)
if y=19(let's assume it's a 20X20 map) then
-teleport bottom map
if X=0 then
-teleport left map
if X=19 then
-teleport right map

you might notice there are now 4 points in the map which give 2 true conditions
0,0 0,19 19,0 19,19
but in order to reach them you must first walk on a tile near them that will teleport you right
like 18,0 or 0,18 0,1 or 1,0 and so on