aaaaaafdjhsjfkoepdsd
Member
I have an object (button), which in the Left Mouse Button event has a code to restart the room (change player's x & y to the start, room_restart, etc.). But, that works only if you're restarting in a solid level (no other rooms). In other cases, however, that doesn't work. I've added room_goto to the code, and it won't work!!!
Everything in this code works, except the room_goto. I've tried many things and none of them work. My character keeps spawning at written coordinates, but in the wrong room! Any ideas?
Please help, i've been struggling for half a hour.
P.S.
it also doesn't restart the level somewhy, althrough the upper code for the first level does that
GML:
if (room = Tutorial02)
{
instance_activate_all();
room_goto(Tutorial01);
oChar.x = 156;
oChar.y = 650;
}
Please help, i've been struggling for half a hour.
P.S.
it also doesn't restart the level somewhy, althrough the upper code for the first level does that
Last edited: