Ich habe die Räume so das wenn ich von linken ende gehe komm ich beim nächsten raum von rechts
das Problem ist das wenn die Räume verschieden gross sind geht es nicht
Das ist der Code vom Outside Event vom Player
if y-8 > room_height
{
if room_exists(obj_location.south)
{
room_goto(obj_location.south)
y = 0+8
}
}
if y-8 < 0
{
if room_exists(obj_location.north)
{
room_goto(obj_location.north)
y = room_height-8
}
}
if x+8 > room_width
{
if room_exists(obj_location.east)
{
room_goto(obj_location.east)
x = 0+8
}
}
if x-8 < 0
{
if room_exists(obj_location.west)
{
room_goto(obj_location.west)
x = room_width-8
}
}
Das der Raum create Code
location = instance_create(0,0,obj_location)
with (location)
{
north = -1
south = -1
east = -1
west = -1
}
das Problem ist das wenn die Räume verschieden gross sind geht es nicht
Das ist der Code vom Outside Event vom Player
if y-8 > room_height
{
if room_exists(obj_location.south)
{
room_goto(obj_location.south)
y = 0+8
}
}
if y-8 < 0
{
if room_exists(obj_location.north)
{
room_goto(obj_location.north)
y = room_height-8
}
}
if x+8 > room_width
{
if room_exists(obj_location.east)
{
room_goto(obj_location.east)
x = 0+8
}
}
if x-8 < 0
{
if room_exists(obj_location.west)
{
room_goto(obj_location.west)
x = room_width-8
}
}
Das der Raum create Code
location = instance_create(0,0,obj_location)
with (location)
{
north = -1
south = -1
east = -1
west = -1
}