so walking to the next room work great but going back puts the player at the previous entrance location.
i think its because i set my players location in a room by using:
function room_Load()
{
cplayer.x=23
cplayer.y=260
}
i was thinking of writing something like:
if (cplayer.previousroom == 4)
{
cplayer.x=23;
cplayer.y=260;
}
but it didnt work
i think its because i set my players location in a room by using:
function room_Load()
{
cplayer.x=23
cplayer.y=260
}
i was thinking of writing something like:
if (cplayer.previousroom == 4)
{
cplayer.x=23;
cplayer.y=260;
}
but it didnt work