I know it's a bit of a mess and that my english is awful but here is my problem
When the I reach the end of the room and change to the next room room, the objects jump to another position for no reason. I have no idea how to make this work this is the code
if (path_position = 1){
if habitacionComp = room7c && visto{
x = 40;
y = 240;
habitacionComp = room8c
path_start(comp2Path,0,0,1)
}
if habitacionComp = room8c {
}
}else{
if habitacionComp = room7c && !collision_line(x,y,jugador.x,jugador.y,solido,0,1) && point_distance(x, y, jugador.x, jugador.y) < 200 && !visto{
visto = true
path_start(comp1Path,2,0,1)
}
}
if (habitacionComp = room){
visible = true;
path_speed = 2;
}else{
visible = false;
path_speed = 0;
}
i tried changing the x and y by myself and to make a path that starts in those particular x and y, and it works until i change the room, then it jumps to another random position











