Overlays

by Forum_account
Overlays
An easy way to manage and manipulate overlays.
ID:323794
 
BYOND Version:494.1125
Operating System:Windows 7 Pro
Web Browser:Chrome 18.0.1025.39
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
I don't know if this is a bug report or a Feature request, but i'm using your pixel movement library, and all my mobs have pixel_x= -8.
I thought this would be a problem when I decide to use this library, but I was wrong, overlay() works fine.
The only problem is with Flick().Flick doesn't seem to care if my mob has pixel_x -8...
Please fix this!
Thanks for pointing this out. I'll look into it today.
I'm not sure if there's a way to change the libraries to make this work. The Overlays library would have to be aware that the Pixel Movement library is being used. For now, to get it working, you can add this code to your project:

mob
pixel_move()
..()

if(move_x || move_y)
if(flicked_overlays)
for(var/obj/o in flicked_overlays)
o.pixel_step_size = pixel_step_size
o.Move(loc, dir)
o.step_x = px - x * icon_width
o.step_y = py - y * icon_height

if(flicked_overlay_pool)
for(var/obj/o in flicked_overlay_pool)
o.pixel_step_size = pixel_step_size
o.Move(loc, dir)
o.step_x = px - x * icon_width
o.step_y = py - y * icon_height