Re: Inform and thedark
30 May 1995 11:39:48 GMT
Ed Armstrong <ed.armstrong@canrem.com> wrote:
> Whenever I enter a dark room, the game prints "You can see your former
> self here." This is not good. To duplicate this problem, simply
> remove the "light" property from any room in the Nasal Twinge example.
> I know that the "newplayer" object has "thedark" as its number, but
> this doesn't seem to make any difference. Help! There must be an
> easy solution to this.
After calling
ChangePlayer(newplay);
insert the line
remove selfobj;
(the problem occurs because "selfobj" also has "thedark" as its number,
so that's where it ends up after you call ChangePlayer...).
You also need to give your "newplay" object a number property of 0 (not
"thedark"), otherwise they will be transported to "thedark" and never be
able to get out.
--
Gareth Rees
--
Gareth Rees