animate() in the webclient seems to be doing really weird things to pixel offsets...
The relevant code:
animate(I, pixel_x = old_px, pixel_y = -48, time = 15, easing = SINE_EASING | EASE_IN)
sleep(15)
I.layer = OBJ_LAYER
animate(I, pixel_y = -32, time = 3, easing = SINE_EASING | EASE_OUT)
sleep(3)
animate(I, pixel_y = -48, time = 3, easing = SINE_EASING | EASE_IN)
sleep(3)
animate(I, pixel_y = -40, time = 2, easing = SINE_EASING | EASE_OUT)
sleep(2)
animate(I, pixel_y = -48, time = 2, easing = SINE_EASING | EASE_IN)
sleep(10)
P.give_item(item_type)
animate(I, alpha = 0, time = 10)
How it currently looks (Webclient): http://i.imgur.com/LQhhxR4.gifv
How it's supposed to look (DS): http://i.imgur.com/KrD4Ig5.gifv