Hello, I just joined the forums becuase I came across a problem that I need help from a more experienced user with. I am getting the error "room4.asc(-10): Runtime error: Function still open, missing }" in this script:
//room script
function oObject1_AnyClick()
{
int key;
if (GetGlobalInt(key) == 2) {
Display("Ypo have already chosen a key.");
}
else {
SetGlobalInt (key, 1);
oObject1.SetPosition(900, 900);
}
function oObject0_AnyClick;
{
if (GetGlobalInt(key) == 1) {
Display("You have already chosen a key.");
}
else {
SetGlobalInt (key, 2);
oObject0.SetPosition(900, 900);
}
function hHotspot1_WalkOn;
{
Penguin.StopMoving();
Penguin.ChangeRoomAutoPosition(3);
Penguin.x = 145;
Penguin.y = 145;
Penguin.PlaceOnWalkableArea();
Penguin.StopMoving();
}
Thanks in advance.
//room script
function oObject1_AnyClick()
{
int key;
if (GetGlobalInt(key) == 2) {
Display("Ypo have already chosen a key.");
}
else {
SetGlobalInt (key, 1);
oObject1.SetPosition(900, 900);
}
function oObject0_AnyClick;
{
if (GetGlobalInt(key) == 1) {
Display("You have already chosen a key.");
}
else {
SetGlobalInt (key, 2);
oObject0.SetPosition(900, 900);
}
function hHotspot1_WalkOn;
{
Penguin.StopMoving();
Penguin.ChangeRoomAutoPosition(3);
Penguin.x = 145;
Penguin.y = 145;
Penguin.PlaceOnWalkableArea();
Penguin.StopMoving();
}
Thanks in advance.
