Community

SCI Programming => SCI Syntax Help => Topic started by: gumby on November 04, 2017, 08:39:36 AM

Title: SCI 1.1 - DrawPic & dpOPEN_INSTANTLY
Post by: gumby on November 04, 2017, 08:39:36 AM
I'm having a problem when calling DrawPic with dpOPEN_INSTANTLY (defined as -1 in sci.sh) - I get the request room pic, but it's flipped horizontally when displayed.

Here's my code (in the room instance):
Code: [Select]
(method (handleEvent pEvent)
(super handleEvent: pEvent)
(switch ((gUser curEvent?) message?)
(V_LOOK
   (DrawPic 5 dpOPEN_INSTANTLY)
)
)
)


EDIT: I found a workaround, used the dpOPEN_NO_TRANSITION (100) option instead.
Title: Re: SCI 1.1 - DrawPic & dpOPEN_INSTANTLY
Post by: lskovlun on November 04, 2017, 10:15:10 AM
I suspect this constant should be removed from the SCI1.1 template game entirely. Its value is -1, which means that all the modifier flags (there are four of them, some seem to be mutually exclusive) are set.