On Fri, Feb 12, 2010 at 06:58:29PM +1300, Ralph Versteegen wrote:
> On 12 February 2010 10:04, James Paige <[email protected]> wrote:
> > On Fri, Feb 12, 2010 at 08:54:46AM +1300, Ralph Versteegen wrote:
> >> On 12 February 2010 08:00, James Paige <[email protected]> wrote:
> >> > On Thu, Feb 11, 2010 at 10:44:45AM -0800, [email protected] 
> >> > wrote:
> >> >> teeemcee
> >> >> 2010-02-11 10:44:45 -0800 (Thu, 11 Feb 2010)
> >> >> 95
> >> >> Fix slice clipping; nesting clipping, positioning, and clip rects 
> >> >> partially offscreen now work.
> >> >
> >> > Slick! It looks great.
> >> >
> >> > ---
> >> > James
> >>
> >> When I said "a few lines of code" I expected far fewer than this;
> >> getting this working properly was actually pretty difficult.
> >
> > Looking at the diff, I believe it :)
> >
> >> But all is not well. I saw this on CP:
> >> "Problem is, the big sprite blips out (as far as I can tell) when it
> >> wraps around the map, even using the nightly."
> >> Hmm, maybe map layers will need their own RefreshChildren method which
> >> contains the current (unreliable) framewalkabout logic.
> >
> > In that case a script is manually re-positioning the slice to match the
> > position of an NPC once each frame. I am guessing this is causing an
> > off-by-one sort of error when the NPC wraps, and it takes the slice one
> > tick to catch up... actually, I wonder if the slice is lagging behind
> > the NPC one tick all the time, and it only becomes noticeable when you
> > wrap.
> 
> No, I'm not talking about that script. I mean that NPCs wrap around
> map edges, but slices parented to map layers don't. When we switch to
> using slices for NPCs, rather than recalculating the on-screen
> position of all NPC slices the way we currently do for NPCs, prehaps
> we can generalise this to all slices attached to map slice objects...
> which would include map layers, the NPC/heroes slice layer(s), and the
> map root (in case movesliceabove/below is used).

Ah, okay! I am on the trolley now! That is a good idea!

---
James Paige
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to