```
//Transition E
if (transitioE = 1)
{
XCamSpeed = 12;
ini_open("RoomsPos.ini")
trnsTrgtX = ini_read_real("room24","xr","1");
trnsTrgtY = ini_read_real("room24","yr","1");
ini_close()
if (x >= actualRoomX + 768)
{
transitioE = 2;
}
}
if (transitioE = 2)
{
oPlayer.x = trnsTrgtX - (384-64)
oPlayer.y = trnsTrgtY - 18.5
XCamSpeed = 0;
x = trnsTrgtX - 768
y = trnsTrgtY
transitioE = 3;
}
if (transitioE = 3)
{
XCamSpeed = 12;
if (x >= trnsTrgtX)
{
XCamSpeed = 0;
transitioE = 0;
transitioANY = false;
actualRoomX = x;
actualRoomY = y;
}
}
//Transition O
if (transitioO = 1)
{
XCamSpeed = -12;
ini_open("RoomsPos.ini")
trnsTrgtX = ini_read_real("room11","xr","1");
trnsTrgtY = ini_read_real("room11","yr","1");
ini_close()
if (x <= actualRoomX - 768)
{
transitioO = 2;
}
}
if (transitioO = 2)
{
oPlayer.x = trnsTrgtX + (384-64)
oPlayer.y = trnsTrgtY - 18.5
XCamSpeed = 0;
x = trnsTrgtX + 768
y = trnsTrgtY
transitioO = 3;
}
if (transitioO = 3)
{
XCamSpeed = -12;
if (x <= trnsTrgtX)
{
XCamSpeed = 0;
transitioO = 0;
transitioANY = false;
actualRoomX = x;
actualRoomY = y;
}
}
//Transition N
if (transitioN = 1)
{
YCamSpeed = -8;
ini_open("RoomsPos.ini")
trnsTrgtX = ini_read_real("room31","xr","1");
trnsTrgtY = ini_read_real("room31","yr","1");
ini_close()
if (y <= actualRoomY - 416)
{
transitioN = 2;
oPlayer.vspd = 0;
}
}
if (transitioN = 2)
{
oPlayer.y = trnsTrgtY + (208-64)
oPlayer.x = trnsTrgtX
YCamSpeed = 0;
x = trnsTrgtX
y = trnsTrgtY + 416
transitioN = 3;
}
if (transitioN = 3)
{
YCamSpeed = -8;
if (y <= trnsTrgtY)
{
YCamSpeed = 0;
transitioN = 0;
transitioANY = false;
actualRoomX = x;
actualRoomY = y;
}
}
```