I want to get to different rooms over one edge, but it somehow doesn't work.
Thats the way I thought it shold work, but there must be a little mistake somewhere.
I bet this question was asked a million times before, but i was too lazy to look it up.
function room_LeaveTop()
{
int xort;
xort= cFred.x;
if (112<xort<196)cFred.ChangeRoom(4, 25, 144);
if (443<xort<526)cFred.ChangeRoom(11, 60,175);
if (600<xort<669)cFred.ChangeRoom(12, 17,130);
if (700<xort<763)cFerd.ChangeRoom(3, 30, 170);
if (800<xort<848)cFred.ChangeRoom(13, 52,173);
}
Thanks in advance!
Thats the way I thought it shold work, but there must be a little mistake somewhere.
I bet this question was asked a million times before, but i was too lazy to look it up.
function room_LeaveTop()
{
int xort;
xort= cFred.x;
if (112<xort<196)cFred.ChangeRoom(4, 25, 144);
if (443<xort<526)cFred.ChangeRoom(11, 60,175);
if (600<xort<669)cFred.ChangeRoom(12, 17,130);
if (700<xort<763)cFerd.ChangeRoom(3, 30, 170);
if (800<xort<848)cFred.ChangeRoom(13, 52,173);
}
Thanks in advance!