Hi, Everyone,
I really hope I'm not being too much of a nuisance but I've just been doing some game testing and I've come across a new error for something that was working perfectly until recently. I have several books scattered throughout the game which, on interaction, change the room to show the books' texts (with no visible character). In each case the previous room is restored on mouse click.
I've coded each of these almost exactly the same (the only difference being room coordinates I want the character to go to) and they're all working perfectly - except for this one! Can anyone see any errors in my script for this room please?
Code: ags
Thanks for your time and sorry to bother you again!
- Zephyr.
I really hope I'm not being too much of a nuisance but I've just been doing some game testing and I've come across a new error for something that was working perfectly until recently. I have several books scattered throughout the game which, on interaction, change the room to show the books' texts (with no visible character). In each case the previous room is restored on mouse click.
I've coded each of these almost exactly the same (the only difference being room coordinates I want the character to go to) and they're all working perfectly - except for this one! Can anyone see any errors in my script for this room please?
Overlay *textOverlay;
function room_Load()
{
gStatus.Visible = false;
textOverlay = Overlay.CreateTextual (155, 187, 200, eFontNormal, 53248, "Click to continue...");
}
function on_mouse_click(MouseButton button)
{
cChristian.ChangeRoom (cChristian.PreviousRoom);
gStatus.Visible = true;
}
Thanks for your time and sorry to bother you again!
- Zephyr.
