Community
SCI Programming => SCI Syntax Help => Topic started by: doomlazer on April 30, 2023, 01:00:45 AM
-
A SCI0 cel must be less than 2,116 pixels (46 x 46) or it will not respond to (self setMotion: MoveTo xPos yPos).
If you try to get around that with something like this:
(if (> (self y?) 75)
(-- yPos))
(self posn: 160 yPos)
)
You get major graphical glitches with cels containing over 2,116 pixels.
This behavior is exactly the same in DOSBox and ScummVM. It's a bit annoying.
-
Works fine for me with a 100x100 cel, there must be something going on.
The size of the cel will affect the collision rect that's used when moving it. Maybe it's bumping into to something and being stopped.
-
You are correct. It was hitting a control color. I assumed ignoreControl: was enough, but it works as expected when using illegalBits: 0 instead.
Thank you.
Edit: Oh, you have to set ignoreControl with a bitmask. How did I never notice that before?
ignoreControl: (| cGREEN cWHITE)