ID:273929
 
Well i've been trying this for my proyect, however no success.
This should be in the SIDE MAP format, anyways. Well what i'm trying to do is this:
That every objects icon in a lower-y value gets resized. (Mostly what does side-map with layering, but in this case, resizing)

Any idea?
I don't get what you mean...
proc
scaleMove(ref)
var/icon/I = new(initial(ref:icon))
var/width=I.Width()
var/height=I.Height()
var/maxy=world.maxy
var/yResp=(world.maxy)-((ref:y))

I.Scale((1+((yResp)/maxy))*width,(1+((yResp)/maxy))*height)
return I


that should make the icon's size increase as you go further down the map (if you set the mob's icon equal to the icon it returns whenever the mob moves)
In response to Ill Im
Ill Im wrote:
> proc
> scaleMove(ref)
> var/icon/I = new(initial(ref:icon))
> var/width=I.Width()
> var/height=I.Height()
> var/maxy=world.maxy
> var/yResp=(world.maxy)-((ref:y))
>
> I.Scale((1+((yResp)/maxy))*width,(1+((yResp)/maxy))*height)
> return I
>
>

that should make the icon's size increase as you go further down the map (if you set the mob's icon equal to the icon it returns whenever the mob moves)

Woah, Thanks! ^_^