Author Topic: Large cel doesn't respond to setMotion: MoveTo  (Read 1096 times)

0 Members and 1 Guest are viewing this topic.

Offline doomlazer

Large cel doesn't respond to setMotion: MoveTo
« 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:

Code: [Select]
(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.
« Last Edit: April 30, 2023, 01:05:15 AM by doomlazer »



Offline troflip

Re: Large cel doesn't respond to setMotion: MoveTo
« Reply #1 on: April 30, 2023, 12:55:04 PM »
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.
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline doomlazer

Re: Large cel doesn't respond to setMotion: MoveTo
« Reply #2 on: April 30, 2023, 01:58:00 PM »
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?

Code: [Select]
ignoreControl: (| cGREEN cWHITE)
« Last Edit: April 30, 2023, 03:31:01 PM by doomlazer »


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.028 seconds with 22 queries.